* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow: hidden;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    color: #2d3748;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.welcome-text {
    color: #2d3748;
    font-weight: 600;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.logout-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logout-btn:hover {
    background: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

/* Dashboard Main Content */
.dashboard-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding-top: 20px;
}

.dashboard-title {
    text-align: center;
    color: white;
    width: 100%;
    margin-bottom: 20px;
}

.dashboard-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dashboard-title p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Dashboard Cards - Fixed Grid for exactly 3 cards */
.dashboard-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.dashboard-card:hover::before {
    left: 100%;
}

.dashboard-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
    border-color: rgba(102, 126, 234, 0.4);
}

.dashboard-card.patients {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(255, 255, 255, 0.95));
}

.dashboard-card.appointments {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1), rgba(255, 255, 255, 0.95));
}

.dashboard-card.invoicing {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1), rgba(255, 255, 255, 0.95));
}
.dashboard-card.technician {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1), rgba(255, 255, 255, 0.95));
}

.dashboard-card.ordered-services {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1), rgba(255, 255, 255, 0.95));
}
.dashboard-card.ordered-services:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(72, 187, 120, 0.3);
}
.dashboard-card.admin {
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.1), rgba(255, 255, 255, 0.95));
}

.dashboard-card.admin:hover {
    border-color: rgba(237, 137, 54, 0.4);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.dashboard-card:hover .card-icon {
    transform: scale(1.2) rotate(5deg);
}

.patients .card-icon {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.appointments .card-icon {
    background: linear-gradient(45deg, #48bb78, #38a169);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin .card-icon {
    background: linear-gradient(45deg, #ed8936, #dd6b20);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2d3748;
}

.card-description {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.5;
    margin-bottom: 20px;
}

.card-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
    width: 100%;
}

.admin .card-stats {
    border-top: 2px solid rgba(237, 137, 54, 0.1);
}

.appointments .card-stats {
    border-top: 2px solid rgba(72, 187, 120, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
}

.stat-label {
    font-size: 0.8rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Floating Background Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 10%;
    animation-delay: 2s;
}

.circle-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.circle-4 {
    width: 120px;
    height: 120px;
    bottom: 10%;
    right: 20%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-buttons {
        max-width: 900px;
        gap: 25px;
    }

    .dashboard-card {
        padding: 40px 25px;
        min-height: 280px;
    }

    .card-icon {
        font-size: 3.5rem;
    }

    .card-title {
        font-size: 1.6rem;
    }

    .card-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .header-title {
        font-size: 2rem;
    }

    .dashboard-title h1 {
        font-size: 2.5rem;
    }

    .dashboard-buttons {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 25px;
    }

    .dashboard-card {
        padding: 35px 25px;
        min-height: 260px;
    }

    .card-icon {
        font-size: 3rem;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 15px;
    }

    .header {
        padding: 15px 20px;
    }

    .dashboard-title h1 {
        font-size: 2rem;
    }

    .dashboard-title p {
        font-size: 1.1rem;
    }

    .dashboard-card {
        padding: 25px 20px;
        min-height: 240px;
    }

    .card-stats {
        flex-direction: column;
        gap: 10px;
    }
}

/* Change Password Button */
.change-password-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.change-password-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Modal styling */
#changePasswordModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#changePasswordModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

#changePasswordModal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

#changePasswordModal .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}