/* Reset */
body, h1, h2, h3, p, a {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
}

/* General */
body {
    background-color: #f5faff;
    color: #222;
}

/* Header */
.top-nav {
    background-color: white;
    padding: 1.2em 2em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.4em;
    color: #1e40af;
}

.nav-links a {
    margin-left: 1em;
    text-decoration: none;
    color: #1e40af;
    font-weight: 500;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4em 2em;
    background: linear-gradient(to bottom, #eaf6ff, #f5faff);
}

.hero-section h1 {
    font-size: 2.8em;
    color: #1e40af;
    margin-bottom: 0.5em;
}

.hero-section p {
    font-size: 1.2em;
    max-width: 650px;
    margin: 0 auto 1.5em;
}

.hero-buttons {
    margin-top: 1em;
}

.btn {
    display: inline-block;
    margin: 0 0.5em;
    padding: 0.7em 1.5em;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    border: 2px solid #1e40af;
}

.btn-primary {
    background-color: #1e40af;
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: #1e40af;
}

.btn:hover {
    opacity: 0.9;
}

/* How It Works */
.how-it-works {
    text-align: center;
    padding: 3em 1em;
    background: #ffffff;
}

.how-it-works h2 {
    font-size: 2em;
    margin-bottom: 2em;
    font-weight: bold;
    color: #1e293b;
}

.steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2em;
    max-width: 1100px;
    margin: auto;
}

.step {
    background: #e0f2ff;
    padding: 2em;
    border-radius: 12px;
    width: 280px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.step-icon {
    background: #1e40af;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5em;
    font-size: 1.1em;
}

.form-container {
    max-width: 400px;
    margin: 5em auto;
    padding: 2em;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.form-container h2 {
    color: #1e40af;
    margin-bottom: 1.5em;
}

.form-container form input {
    width: 100%;
    padding: 0.75em;
    margin-bottom: 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}

.form-container .btn.full {
    width: 100%;
}

.form-footer {
    margin-top: 1em;
    font-size: 0.9em;
}

.form-footer a {
    color: #1e40af;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.form-error {
    background: #fdecea;
    color: #b91c1c;
    padding: 0.7em;
    border-radius: 6px;
    margin-bottom: 1em;
    font-size: 0.95em;
}
table {
    font-size: 0.95em;
    text-align: left;
}

table th, table td {
    padding: 0.75em;
    border: 1px solid #ccc;
}

input[type="text"],
input[type="number"] {
    padding: 0.6em;
    border-radius: 6px;
    border: 1px solid #ccc;
    flex: 1;
}

.btn-logout {
    background-color: #64748b;
    color: white;
    padding: 0.5em 1em;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 500;
}

.btn-logout:hover {
    background-color: #475569;
}
.admin-nav {
    background-color: #ffffff;
    padding: 1em 2em;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    margin-bottom: 2em;

}

.admin-nav ul {
    list-style: none;
    margin: 0;
    padding: 0 12em 0 0; /* Add right padding */
    display: flex;
    gap: 2em;
    justify-content: flex-end; /* Aligns items to the left */
}

.admin-nav ul li a {
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    transition: color 0.2s ease;
}

.admin-nav ul li a:hover {
    color: #1e40af;
}
.pagination-wrapper {
    text-align: center;
    margin-top: 2em;
}

.pagination-group {
    display: inline-flex;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pag-btn {
    display: inline-block;
    padding: 0.5em 1em;
    font-size: 0.95em;
    color: #2563eb;
    background-color: #fff;
    border-right: 1px solid #d1d5db;
    text-decoration: none;
    transition: background 0.2s ease;
}

.pag-btn:last-child {
    border-right: none;
}

.pag-btn:hover {
    background-color: #e0f2ff;
}

.pag-btn.active {
    background-color: #2563eb;
    color: white;
    font-weight: bold;
}

.pag-btn.disabled {
    pointer-events: none;
    background-color: #f3f4f6;
    color: #9ca3af;
}
.form-container input[type="text"],
.form-container input[type="url"],
.form-container input[type="email"],
.form-container input[type="password"],
.form-container input[type="number"] {
    width: 100%;
    padding: 0.75em;
    margin-bottom: 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    display: block;
}
.btn-small {
    padding: 0.3em 0.6em;
    font-size: 0.85em;
    border-radius: 5px;
    margin-right: 0.3em;
    display: inline-block;
}

.btn-danger {
    background-color: #dc2626;
    color: white;
    text-decoration: none;
    border: none;
}

.btn-danger:hover {
    background-color: #b91c1c;
}
.action-buttons {
    display: flex;
    gap: 0.5em;
}

.action-buttons .btn-small {
    display: inline-block;
    margin: 0;
}
.btn-warning {
    background-color: #f59e0b;
    color: white;
    padding: 0.4em 0.7em;
    border: none;
    border-radius: 5px;
    text-decoration: none;
}

.btn-warning:hover {
    background-color: #d97706;
}

.btn-success {
    background-color: #10b981;
    color: white;
    padding: 0.4em 0.7em;
    border: none;
    border-radius: 5px;
    text-decoration: none;
}

.btn-success:hover {
    background-color: #059669;
}
.pagination {
    display: inline-flex;
    gap: 0.4em;
    padding: 0.5em;
    border-radius: 6px;
    margin-top: 1em;
}

.pagination a {
    padding: 0.5em 0.9em;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: #1e40af;
    font-weight: 500;
    transition: background 0.2s ease;
}

.pagination a:hover {
    background-color: #e0f2ff;
}

.pagination .active-page {
    background-color: #1e40af;
    color: white;
    border-color: #1e40af;
}
.visit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    margin-top: 1.5em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.visit-table thead {
    background-color: #1e40af;
    color: white;
}

.visit-table th, .visit-table td {
    padding: 0.9em;
    text-align: left;
    border: 1px solid #d1d5db;
}

.visit-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.visit-table tr:hover {
    background-color: #eef2ff;
    transition: background 0.2s ease-in-out;
}
.back-link {
    display: inline-block;
    margin-top: 1em;
    font-size: 0.95em;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    text-decoration: underline;
    color: #1e3a8a;
}
