/* Custom CSS for Student Card Appointment System */

@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap");

body {
    font-family: "Kanit", "Sukhumvit Set", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.infographic-card {
    border-radius: 15px;
    border: none;
    transition: transform 0.2s ease-in-out;
}

.infographic-card:hover {
    transform: translateY(-5px);
}

.card-header {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding: 1.25rem 1.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.card-body {
    padding: 1.5rem;
}

.list-group-item {
    border-color: #e9ecef;
    padding: 1rem 1.25rem;
}

/* Timeline specific styles */
.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e9ecef;
    left: 20px; /* Adjust as needed */
    margin-left: -1.5px;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-icon {
    background-color: #0d6efd; /* Bootstrap primary color */
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    font-size: 1.2rem;
}

.timeline-content {
    margin-left: 60px; /* Space for icon */
    background-color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.timeline-content h6 {
    margin-bottom: 5px;
}

/* Main container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header styles */
.app-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.app-header h1 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.app-header .subtitle {
    color: #718096;
    font-size: 1.1rem;
}

/* Search card */
.search-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-form {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.btn-search {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-clear {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background: #cbd5e0;
    color: #2d3748;
}

/* Results card */
.results-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.results-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
}

.result-count {
    background: #edf2f7;
    color: #4a5568;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Student table */
.student-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.student-table .table {
    margin-bottom: 0;
}

.student-table .table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 500;
    border: none;
    padding: 15px;
}

.student-table .table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-color: #e2e8f0;
}

.student-table .table tbody tr:hover {
    background-color: #f7fafc;
}

.student-id {
    font-weight: 600;
    color: #4a5568;
    font-family: "Courier New", monospace;
}

.student-name {
    font-weight: 500;
    color: #2d3748;
}

.faculty-name {
    color: #718096;
    font-size: 0.9rem;
}

.program-name {
    color: #4a5568;
    font-size: 0.9rem;
}

/* Status badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    min-width: 80px;
}

.status-produced {
    background-color: #c6f6d5;
    color: #22543d;
}

.status-producing {
    background-color: #fed7aa;
    color: #7c2d12;
}

.status-waiting {
    background-color: #bee3f8;
    color: #2c5282;
}

.status-received {
    background-color: #e9d8fd;
    color: #44337a;
}

.status-cancelled {
    background-color: #fed7d7;
    color: #742a2a;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #4a5568;
}

.empty-state-text {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Loading state */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Pagination */
.pagination-container {
    margin-top: 30px;
}

.pagination .page-link {
    border: none;
    margin: 0 2px;
    border-radius: 8px;
    color: #4a5568;
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.pagination .page-link:hover {
    background: #edf2f7;
    color: #2d3748;
}

/* Responsive design */
@media (max-width: 768px) {
    .app-header h1 {
        font-size: 2rem;
    }

    .search-card,
    .results-card {
        padding: 20px;
    }

    .student-table {
        font-size: 0.9rem;
    }

    .student-table .table thead th,
    .student-table .table tbody td {
        padding: 10px 8px;
    }

    .btn-search,
    .btn-clear {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .app-header h1 {
        font-size: 1.5rem;
    }

    .search-card,
    .results-card {
        padding: 15px;
    }

    .results-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .student-table {
        font-size: 0.8rem;
    }

    .table-responsive {
        font-size: 0.8rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
