/* MediReply AI - Main Stylesheet */

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

::-webkit-scrollbar-track {
    background: #1f2937;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Prose Styles for Email Content */
.prose {
    color: #d1d5db;
    line-height: 1.75;
}

.prose p {
    margin-bottom: 1.25em;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-bottom: 1.25em;
}

.prose ol {
    list-style-type: decimal;
    padding-left: 1.5em;
    margin-bottom: 1.25em;
}

.prose strong {
    color: #f3f4f6;
    font-weight: 600;
}

.prose em {
    color: #9ca3af;
}

/* Form Input Focus States */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

/* Button Animations */
button {
    transition: all 0.2s ease;
}

button:active {
    transform: translateY(1px);
}

/* File Upload Area */
#document-upload + label {
    transition: all 0.3s ease;
}

#document-upload + label:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(244, 63, 94, 0.2);
}

/* Specialty Button Selection */
.specialty-btn.selected {
    background: linear-gradient(135deg, #f43f5e 0%, #f97316 100%);
    border-color: #f43f5e;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(244, 63, 94, 0.3);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #f43f5e 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effects */
.bg-gray-800 {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-gray-800:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Email Body Styling */
#email-body {
    font-family: 'Georgia', serif;
    line-height: 1.8;
}

#email-body p {
    margin-bottom: 1.5em;
}

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

/* Print Styles for Email */
@media print {
    body * {
        visibility: hidden;
    }
    
    #response-screen,
    #response-screen * {
        visibility: visible;
    }
    
    #response-screen {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Visible for Keyboard Navigation */
:focus-visible {
    outline: 2px solid #f43f5e;
    outline-offset: 2px;
}