/* 
 * Student ID Lookup - Custom Styles
 * Inspired by authenticliving.com design
 */

:root {
    /* Color palette inspired by authenticliving.com */
    --primary-color: #ad7e47;      /* Sandy gold */
    --primary-dark: #8a6636;       /* Darker gold */
    --primary-light: #d4b278;      /* Lighter gold */
    --accent-color: #3e3027;       /* Dark chocolate */
    --accent-light: #755c4b;       /* Milk chocolate */
    --neutral-light: #f9f6f0;      /* Cream */
    --neutral-medium: #e7e0d3;     /* Light cream */
    --neutral-dark: #4f4a44;       /* Charcoal */
    --text-color: #312622;         /* Deep brown */
    --success-color: #6b7f59;      /* Sage green */
    --error-color: #a8554a;        /* Terracotta */

    /* Typography */
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Merriweather', serif;
}

/* Base styles */
body {
    font-family: Arial, sans-serif;
    color: #000000;
    background-color: #ffffff;
    line-height: 1.8;
    font-size: 18px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 500;
}

/* Header styles */
.site-header {
    background-color: var(--accent-color);
    color: white;
    padding: 2.5rem 0;
    position: relative;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
}

.site-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 2rem;
}

.site-description {
    font-weight: 300;
    opacity: 0.9;
    font-size: 1.1rem;
    font-style: italic;
}

/* Footer styles */
.site-footer {
    background-color: var(--accent-color);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

/* Card styles */
.card {
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-title {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.card-subtitle {
    color: var(--neutral-dark);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Lookup form styles */
.lookup-card {
    margin-top: 1.5rem;
}

.lookup-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.lookup-form .form-control {
    border-color: var(--neutral-medium);
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.lookup-form .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(139, 115, 85, 0.25);
}

.lookup-form .input-group-text {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: white;
}

.lookup-form .form-text {
    color: var(--neutral-dark);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.lookup-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.lookup-btn:hover, .lookup-btn:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Info box styles */
.info-box {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.info-box h5 {
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.info-box p {
    font-size: 0.95rem;
    color: var(--neutral-dark);
    margin-bottom: 0.5rem;
}

/* Result page styles */
.result-card {
    text-align: left;
}

.student-table {
    margin: 20px 0;
}

.student-table table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.student-table th {
    text-align: center;
    background-color: #ad7e47;
    color: white;
    padding: 12px;
    font-weight: 500;
    width: 33.33%;
}

.student-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
    width: 33.33%;
    text-align: center;
}

.student-table td.student-id {
    letter-spacing: 1px;
    font-weight: 500;
}

.student-table th:not(:last-child),
.student-table td:not(:last-child) {
    border-right: 1px solid #ddd;
}

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

.student-table td.student-id {
    text-align: center;
}

.student-table .cohort-type {
    text-align: center;
    font-weight: 500;
    color: var(--primary-dark);
    background-color: transparent;
    margin: 0;
    padding: 15px;
}

.student-table .student-id {
    font-size: 1.1rem;
    margin: 0;
    text-align: center !important;
}

.student-table td {
    vertical-align: middle;
    text-align: center;
}

.student-table .btn-copy {
    margin: 0;
    white-space: nowrap;
}

.student-table .btn-copy {
    margin: 0;
    padding: 8px 16px;
    min-width: auto;
}

.success-icon-container {
    display: inline-block;
    background-color: rgba(93, 139, 85, 0.15);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.success-icon {
    font-size: 2.5rem;
    color: var(--success-color);
}

.student-details {
    background-color: #f8f8f8;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 2.5rem;
    margin: 2rem 0;
    font-size: 20px;
}

.student-details h3 {
    font-size: 28px;
    margin-bottom: 2.5rem;
    color: #000;
    text-align: center;
}

.detail-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-weight: bold;
    font-size: 20px;
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 20px;
    color: #000;
}

.cohort-type {
    font-size: 24px;
    color: #000;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #e8e8e8;
    text-align: center;
    border-radius: 5px;
}

.student-id {
    font-size: 28px;
    font-weight: bold;
    color: #000;
    margin: 1.5rem 0;
    text-align: center;
    flex: 1;
}



.cohort-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 1.5rem;
    background-color: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}



.detail-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
}

.detail-label {
    font-weight: 600;
    color: var(--primary-dark);
    width: 100px;
}

.detail-value {
    flex: 1;
}

.detail-item.highlight {
    background-color: rgba(93, 139, 85, 0.15);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 0;
}

.student-id {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--success-color);
    display: block;
    width: 100%;
    text-align: center;
}

/* Student number section styling */
.student-number-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.student-id-label {
    font-weight: bold;
    font-size: 20px;
    color: #333;
    text-align: center;
}

.student-id-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.btn-copy {
    background-color: #d4b278;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 18px;
    transition: all 0.2s ease;
    border-radius: 5px;
    cursor: pointer;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-copy:hover {
    background-color: #ad7e47;
    color: white;
    transform: translateY(-2px);
}

.btn-copy .fa-copy,
.btn-copy .fa-check {
    margin-right: 4px;
}

.copy-success-message {
    background-color: var(--success-color);
    color: white;
    text-align: center;
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: none;
}

.copy-success-message.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.personal-greeting {
    color: var(--primary-dark);
    font-style: italic;
    font-size: 1.1rem;
}

/* Error page styles */
.error-card {
    text-align: center;
}

.error-icon-container {
    display: inline-block;
    background-color: rgba(168, 87, 81, 0.15);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.error-icon {
    font-size: 2.5rem;
    color: var(--error-color);
}

.error-message-container {
    background-color: rgba(168, 87, 81, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.error-message {
    color: var(--error-color);
    font-weight: 500;
    margin-bottom: 0;
}

.error-help-text {
    font-size: 0.95rem;
    color: var(--neutral-dark);
    margin: 1rem 0;
}

.credentials-help {
    background-color: rgba(173, 126, 71, 0.1);
    padding: 1.5rem;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
}

.credentials-help h5 {
    color: var(--primary-dark);
    font-weight: 600;
}

.credentials-help ol {
    padding-left: 1rem;
}

.credentials-help li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* Alert styles */
.alert {
    border: none;
    border-radius: 8px;
}

.alert-danger {
    background-color: rgba(168, 87, 81, 0.15);
    color: var(--error-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }

    .detail-item {
        flex-direction: column;
    }

    .detail-label {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .student-number-section {
        gap: 0.75rem;
    }

    .student-id-display {
        gap: 0.75rem;
    }

    .btn-copy {
        padding: 10px 16px;
        font-size: 16px;
        min-width: 150px;
    }

    .site-title {
        font-size: 1.75rem;
    }

    .site-description {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .lookup-form .form-control {
        padding: 0.6rem 0.75rem;
    }

    .student-details {
        padding: 1rem;
    }

    .detail-item.highlight {
        padding: 0.75rem;
    }

    .success-icon-container, .error-icon-container {
        width: 60px;
        height: 60px;
    }

    .success-icon, .error-icon {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    .site-header, .site-footer, .info-box, button {
        display: none;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .student-details {
        background-color: white;
        border: 1px solid #ddd;
    }
}