@import url('./global.css');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #F5F7FA; /* Light grey background for contrast */
    color: #333;
    line-height: 1.6;
}



/* Main Container */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns by default */
    gap: 1.5rem;
}

/* Card Styling */
.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primaryColor);
    overflow: hidden;
    transition: transform 0.2s ease;
}

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

.card-header {
    background-color: #F0F4F1;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #E0E0E0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.1rem;
    color: var(--primaryColor);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 1.5rem;
}

/* Info Rows */
.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #EEEEEE;
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-row .label {
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.9rem;
}

.info-row .value {
    font-weight: 600;
    color: var(--text-dark);
}

.info-row .value.highlight {
    color: var(--primaryColor);
}

/* Student Card Specifics */
.student-card {
    grid-column: span 1;
}

.student-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.student-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--accent-gold);
    object-fit: cover;
}

.status-badge {
    background-color: var(--primaryColor);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-mark-attendance {
    width: 100%;
    padding: 12px;
    background-color: var(--primaryColor);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.btn-mark-attendance:hover {
    background-color: var(--secondaryColor);
}

.btn-mark-attendance.done {
    background-color: var(--secondaryColor);
    cursor: default;
}

/* Timetable */
.timetable-card {
    grid-column: span 2; /* Timetable takes full width */
}

.table-responsive {
    overflow-x: auto;
}

.timetable {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.timetable th {
    text-align: left;
    padding: 1rem;
    background-color: var(--primaryColor);
    color: white;
    font-weight: 500;
}

.timetable td {
    padding: 1rem;
    border-bottom: 1px solid #E0E0E0;
}

.timetable tbody tr:hover {
    background-color: #FAFAFA;
}

.timetable tbody tr:nth-child(even) {
    background-color: #F5F5F5;
}



/* Responsive Design */
@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .timetable-card {
        grid-column: span 1;
    }

}