/* Card Styling for ConsultClock */

/* Apply consistent styling to all cards */
.card, .panel, .user-card, .report-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Hover effect */
.card:hover, .panel:hover, .user-card:hover, .report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

/* Top gradient bar - ALL THE SAME */
.card::before, .panel::before, .user-card::before, .report-card::before, .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #3dc8ff, #00a5d8);
    transition: height 0.3s ease;
    z-index: 1;
}

/* Increase the gradient bar height on hover */
.card:hover::before, .panel:hover::before, .user-card:hover::before, .report-card:hover::before, .stat-card:hover::before {
    height: 6px;
}

/* Header actions inside cards */
.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* 2x2 grid layout for dashboard */
.dashboard.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .dashboard.grid-2x2 {
        grid-template-columns: 1fr;
    }
}

/* Stat card specific styles */
.stat-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.stat-card .icon {
    font-size: 2.5rem;
    color: #00c0f9;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.stat-card:hover .icon {
    transform: scale(1.1);
}

.stat-card .value {
    font-size: 2rem;
    font-weight: bold;
    color: #243b53;
    margin-bottom: 5px;
}

.stat-card .label {
    color: #4a5568;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Modal styling to match cards */
.modal {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    position: relative;
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #3dc8ff, #00a5d8);
    z-index: 1;
}

.modal-header {
    background-color: #f5f7fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-title {
    color: #243b53;
    margin: 0;
    font-weight: 600;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Profile page styling */
.profile-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.profile-table tr {
    border-bottom: 1px solid #edf2f7;
}

.profile-table tr:last-child {
    border-bottom: none;
}

.profile-table th {
    text-align: left;
    padding: 12px 15px;
    background-color: #f5f7fa;
    color: #4a5568;
    font-weight: 600;
    width: 30%;
}

.profile-table td {
    padding: 12px 15px;
    color: #243b53;
}

/* Remove text highlighting */
.highlighted, .highlight, em, strong {
    font-style: normal;
    font-weight: normal;
    color: inherit;
    background-color: transparent;
}

/* Dark theme compatibility */
@media (prefers-color-scheme: dark) {
    .card, .panel, .user-card, .stat-card, .report-card, .modal {
        background-color: #222222;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    .modal-header {
        background-color: #1e1e1e;
        border-bottom-color: #333;
    }
    
    .modal-footer {
        border-top-color: #333;
    }
    
    .modal-title {
        color: #edf2f7;
    }
    
    .stat-card .value {
        color: #edf2f7;
    }
    
    .stat-card .label {
        color: #a0aec0;
    }
    
    .profile-table th {
        background-color: #1e1e1e;
        color: #a0aec0;
    }
    
    .profile-table td {
        color: #edf2f7;
    }
    
    .profile-table tr {
        border-bottom-color: #333;
    }
}