:root {
    --primary-color: #4a90e2;
    --secondary-color: #357abd;
    --background-color: #f4f7f6;
    --card-background: #ffffff;
    --text-color: #333333;
    --text-muted: #666666;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Main Container */
.container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Auth Cards */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
    background: var(--card-background);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.auth-card h2 {
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    width: 100%;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

/* Search Area */
.search-container {
    position: relative;
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    border: 2px solid transparent;
    border-radius: 50px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 0.5rem;
    list-style: none;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.suggestions-list li {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.suggestions-list li:last-child {
    border-bottom: none;
}

.suggestions-list li:hover {
    background-color: #f8f9fa;
}

/* Results Table */
.results-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: none;
    width: 100%;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background-color: #f8f9fa;
    color: var(--text-muted);
    font-weight: 600;
}

.table tr:last-child td {
    border-bottom: none;
}

.message {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

.message.error {
    background-color: #fdeded;
    color: #ef5350;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        /* Reduced base font size */
    }

    .navbar {
        flex-direction: column;
        padding: 0.8rem;
        /* Compact padding */
        text-align: center;
    }

    .brand {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .nav-links a {
        margin-left: 0;
        display: block;
        padding: 0.5rem;
        font-size: 0.95rem;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
    }

    .nav-links span {
        display: block;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    .container {
        margin: 1rem auto;
        padding: 0 0.8rem;
    }

    .search-input {
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .page-header h2 {
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
    }

    .results-card {
        overflow-x: auto;
        /* Enable horizontal scroll for table */
    }

    .table {
        min-width: 500px;
        /* Force width */
    }

    .table th,
    .table td {
        padding: 0.6rem 0.5rem;
        /* Reduced padding */
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}