/* ==========================================================================
   Custom Application Styles
   Doctor Appointment System
   ========================================================================== */

/* Ensure smooth transitions globally */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Remove default focus outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Body background */
body {
    background: var(--neutral-bg-light);
    color: var(--neutral-text);
}

/* Link styling */
a {
    color: var(--primary-600);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-700);
    text-decoration: underline;
}

/* Selection styling */
::selection {
    background: var(--primary-500);
    color: white;
}

::-moz-selection {
    background: var(--primary-500);
    color: white;
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-500);
    border-radius: var(--radius-full);
    border: 2px solid var(--neutral-bg-light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-600);
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
    cursor: wait;
}

/* Disabled state */
.disabled,
[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Text utilities */
.text-medical-blue {
    color: var(--primary-600);
}

.text-cyan-accent {
    color: var(--accent-600);
}

/* Background utilities */
.bg-medical-blue {
    background: var(--primary-500);
}

.bg-cyan-accent {
    background: var(--accent-500);
}

/* Gradient backgrounds */
.bg-gradient-medical {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
}

.bg-gradient-cyan {
    background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
}

/* Animation utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-slide-in-up {
    animation: slideInUp 0.3s ease-out;
}

.animate-slide-in-down {
    animation: slideInDown 0.3s ease-out;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Print styles */
@media print {
    body {
        background: white;
    }

    .no-print {
        display: none !important;
    }

    a[href]:after {
        content: none !important;
    }
}