/* Custom styles for Gediz Sağlık Hastanesi */

/* Navigation styles */
.nav-link { color: #4b5563; font-weight: 500; position: relative; transition: color 0.3s ease; }
.nav-link:hover { color: #2563eb; }
.nav-link.active { color: #2563eb; }

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2563eb;
}

.nav-link-mobile { color: #4b5563; font-weight: 500; padding: 0.5rem 1rem; border-radius: 0.375rem; transition: color 0.3s ease, background-color 0.3s ease; }
.nav-link-mobile:hover { color: #2563eb; }
.nav-link-mobile.active { color: #2563eb; background-color: #eff6ff; }

/* Page transitions */
.page {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}

.page.active {
    opacity: 1;
    transform: translateY(0);
}

/* Form styles */
input:focus, select:focus, textarea:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.5); }

/* Button hover effects */
.btn-primary { background-color: #2563eb; color: #fff; padding: 0.75rem 1.5rem; border-radius: 0.375rem; transition: background-color 0.3s ease; font-weight: 500; }
.btn-primary:hover { background-color: #1d4ed8; }

/* Card hover effects */
.card-hover { transition: box-shadow 0.3s ease, transform 0.3s ease; }
.card-hover:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); transform: translateY(-4px); }

/* Success message animation */
.success-message {
    animation: slideIn 0.5s ease-out;
}

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

/* Loading spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2563eb;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-3xl {
        font-size: 1.75rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Print styles */
@media print {
    .nav-link, .mobile-menu, footer {
        display: none !important;
    }
    
    .page {
        opacity: 1 !important;
        transform: none !important;
    }
}
