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

:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --border-color: #e5e7eb;
    --text-color: #374151;
    --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 70%, rgba(147, 51, 234, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 10% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(34, 197, 94, 0.08) 0%, transparent 40%),
        linear-gradient(135deg, #1e3a8a 0%, #7c3aed 25%, #2563eb 50%, #4f46e5 75%, #1e293b 100%);
    background-attachment: fixed;
    background-size: 400% 400%;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.4) 0%, transparent 30%),
        radial-gradient(circle at 75% 75%, rgba(147, 51, 234, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 15% 85%, rgba(236, 72, 153, 0.25) 0%, transparent 35%),
        radial-gradient(ellipse at 85% 15%, rgba(34, 197, 94, 0.2) 0%, transparent 45%),
        radial-gradient(ellipse at 95% 85%, rgba(147, 51, 234, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: -2;
    animation: float 20s ease-in-out infinite, pulse 4s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.02) 20px,
            rgba(255, 255, 255, 0.02) 40px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 20px,
            rgba(59, 130, 246, 0.015) 20px,
            rgba(59, 130, 246, 0.015) 40px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 15px,
            rgba(236, 72, 153, 0.01) 15px,
            rgba(236, 72, 153, 0.01) 30px
        ),
        repeating-conic-gradient(
            from 0deg at 50% 50%,
            to 360deg at 50% 50%,
            rgba(59, 130, 246, 0.005) 0% 25%,
            rgba(147, 51, 234, 0.003) 25% 50%,
            rgba(236, 72, 153, 0.002) 50% 75%,
            rgba(34, 197, 94, 0.001) 75% 50%
        );
    pointer-events: none;
    z-index: -1;
    animation: slide 30s linear infinite, rotate 60s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-12px) rotate(2deg); }
    50% { transform: translateY(-6px) rotate(-1deg); }
    75% { transform: translateY(-3px) rotate(0.5deg); }
}

@keyframes slide {
    0% { transform: translateX(0px); }
    100% { transform: translateX(60px); }
}

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

@keyframes pulse {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 0.1;
        transform: scale(1.05);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #1f2937;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo i {
    font-size: 2rem;
    color: #667eea;
    text-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.logo h1 {
    margin: 0;
    color: #1f2937;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-disclaimer {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    margin-left: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: pulse-disclaimer 2s ease-in-out infinite;
    position: relative;
    z-index: 10;
}

@keyframes pulse-disclaimer {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }
}

.nav {
    margin-left: auto;
    position: relative;
}

.nav::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav:hover::before {
    width: 100%;
}

.nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.nav li {
    margin: 0;
    position: relative;
}

.nav li::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: -1;
}

.nav li:hover::before {
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.2);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    border-radius: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(31, 41, 55, 0.1);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(102, 126, 234, 0.05) 70%, transparent 100%);
    transition: all 0.4s ease;
    opacity: 0;
    border-radius: 0.75rem;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(139, 92, 246, 0.1));
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.25),
        0 8px 24px rgba(102, 126, 234, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-link.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.3),
        0 8px 24px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: #667eea;
    transform: translateY(-2px) scale(1.05);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-link.active::before {
    opacity: 1;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 30%, rgba(255, 255, 255, 0.05) 70%, transparent 100%);
}

.nav-link i {
    font-size: 1.1rem;
    width: 18px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.nav-link:hover i {
    transform: scale(1.1) rotate(5deg);
    color: #ffd700;
}

/* Main Content */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
    position: relative;
    z-index: 1;
}

.section {
    display: none;
    animation: fadeIn 0.3s ease-in;
    padding: 1rem 0;
    background: white;
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.section.active {
    display: block;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: var(--dark-color);
    font-size: 2rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
}

.recent-activities {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.recent-activities h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Search Bar */
.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-bar input,
.search-bar select {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-bar input:focus,
.search-bar select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Tables */
.table-container {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.table-container:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table th {
    background-color: var(--light-color);
    font-weight: 600;
    color: var(--dark-color);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid var(--border-color);
}

.data-table tbody tr:hover {
    background-color: #f9fafb;
}

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

/* Status Badges */
.status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
}

.status.active {
    background-color: #d1fae5;
    color: #065f46;
}

.status.inactive {
    background-color: #fee2e2;
    color: #991b1b;
}

.status.scheduled {
    background-color: #dbeafe;
    color: #1e40af;
}

.status.completed {
    background-color: #d1fae5;
    color: #065f46;
}

.status.cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

.status.paid {
    background-color: #d1fae5;
    color: #065f46;
}

.status.overdue {
    background-color: #fee2e2;
    color: #991b1b;
}

.status.in-progress {
    background-color: #fef3c7;
    color: #92400e;
}

.status.available {
    background-color: #d1fae5;
    color: #065f46;
}

.status.occupied {
    background-color: #fee2e2;
    color: #991b1b;
}

.status.maintenance {
    background-color: #fef3c7;
    color: #92400e;
}

.status.in-stock {
    background-color: #d1fae5;
    color: #065f46;
}

.status.low-stock {
    background-color: #fef3c7;
    color: #92400e;
}

.status.out-of-stock {
    background-color: #fee2e2;
    color: #991b1b;
}

.status.expired {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-success {
    background-color: var(--secondary-color);
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-group {
    display: flex;
    gap: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--danger-color);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-grid textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Service Items */
.service-items {
    grid-column: 1 / -1;
}

.service-item {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.service-item button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
}

.service-item button:hover {
    background-color: #059669;
}

/* Beds Grid */
.beds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.bed-card {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.bed-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.bed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bed-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.bed-status {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.bed-info {
    margin-bottom: 1rem;
}

.bed-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.bed-info-label {
    color: #6b7280;
}

.bed-info-value {
    font-weight: 500;
    color: var(--dark-color);
}

.bed-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.bed-actions .btn {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.875rem;
}

/* Reports */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.report-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.report-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
    text-align: center;
}

.report-card canvas {
    max-height: 300px !important;
    width: 100% !important;
    height: 250px !important;
}

/* Activity List */
.activity-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.activity-icon.patient {
    background-color: #dbeafe;
    color: #1e40af;
}

.activity-icon.doctor {
    background-color: #d1fae5;
    color: #065f46;
}

.activity-icon.appointment {
    background-color: #fef3c7;
    color: #92400e;
}

.activity-icon.billing {
    background-color: #ede9fe;
    color: #5b21b6;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0;
    color: var(--text-color);
}

.activity-content small {
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 20px;
    }
    
    .logo {
        margin-bottom: 0.5rem;
    }
    
    .nav {
        margin-left: 0;
        width: 100%;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        gap: 0.25rem;
    }
    
    .nav-link i {
        font-size: 0.9rem;
        width: 14px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 0.5rem;
        border: 1px solid var(--border-color);
    }
    
    .data-table {
        min-width: 800px;
        font-size: 0.85rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .beds-grid {
        grid-template-columns: 1fr;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card i {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* Loading Spinner */
.spinner {
    border: 4px solid var(--light-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}

.empty-state i {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 2000;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid var(--secondary-color);
}

.toast.error {
    border-left: 4px solid var(--danger-color);
}

.toast.warning {
    border-left: 4px solid var(--warning-color);
}

.toast i {
    font-size: 1.2rem;
}

.toast.success i {
    color: var(--secondary-color);
}

.toast.error i {
    color: var(--danger-color);
}

.toast.warning i {
    color: var(--warning-color);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(102, 126, 234, 0.05) 70%, transparent 100%);
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 1.5rem;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(102, 126, 234, 0.15),
        0 8px 24px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(102, 126, 234, 0.2);
}

.contact-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.contact-card h3 i {
    font-size: 1.8rem;
    width: 30px;
    text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.contact-card:hover h3 i {
    transform: scale(1.1) rotate(5deg);
    -webkit-text-fill-color: #ffd700;
    background-clip: text;
}

.contact-info {
    position: relative;
    z-index: 2;
}

.contact-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
}

.contact-info p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: scale(1.3);
        opacity: 1;
    }
}

.contact-info .emergency-number,
.contact-info .reception-number,
.contact-info .ambulance-number {
    font-size: 1.4rem;
    font-weight: bold;
    color: #dc2626;
    margin: 1rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.05));
    border-radius: 0.75rem;
    border: 1px solid rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-info .emergency-number::before,
.contact-info .reception-number::before,
.contact-info .ambulance-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
    animation: slide-across 3s linear infinite;
}

@keyframes slide-across {
    0% { left: -100%; }
    100% { left: 100%; }
}

.contact-info .email-address {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
    border-radius: 0.75rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.contact-info .address {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    margin: 1rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    border-radius: 0.75rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
    transition: all 0.3s ease;
}

.contact-info strong {
    color: var(--text-color);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Contact Section Special Effects */
.contact-card:nth-child(1) {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(220, 38, 38, 0.02));
    border-color: rgba(220, 38, 38, 0.1);
}

.contact-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.02));
    border-color: rgba(59, 130, 246, 0.1);
}

.contact-card:nth-child(3) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(102, 126, 234, 0.02));
    border-color: rgba(102, 126, 234, 0.1);
}

.contact-card:nth-child(4) {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(34, 197, 94, 0.02));
    border-color: rgba(34, 197, 94, 0.1);
}

.contact-card:nth-child(5) {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(236, 72, 153, 0.02));
    border-color: rgba(236, 72, 153, 0.1);
}

.contact-card:nth-child(6) {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(168, 85, 247, 0.02));
    border-color: rgba(168, 85, 247, 0.1);
}
