/* Components CSS - Reusable component styles */


/* Navigation Bar */
.navbar {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #6366f1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.logo svg {
    width: 24px;
    height: 24px;
    color: #6366f1;
    stroke-width: 2.5;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    color: #475569;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #6366f1;
}

.nav-links a:hover svg {
    color: #6366f1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6366f1;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.language-btn {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.language-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 33, 182, 0.2);
}

.language-btn.active {
    background: var(--gradient-secondary);
    color: white;
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Step Card */
.step-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.06);
}

.step-card h2 {
    color: #1e293b;
    margin-bottom: 28px;
    font-size: 1.75em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    padding: 0;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    min-height: 60px;
    line-height: 1.2;
}

/* Form Styles */
.form-group {
    margin-bottom: 32px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #374151;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input, 
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    background-color: #f8fafc;
    color: #1e293b;
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    /* Ensure inputs are interactive in all modes */
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    opacity: 1 !important;
    cursor: text !important;
    position: relative !important;
    z-index: 10 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.form-group textarea {
    border-radius: 12px;
    padding: 15px;
}

.form-group input:focus, 
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Specific styles for patient name input to ensure it works in all modes */
#patientName {
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    opacity: 1 !important;
    cursor: text !important;
    position: relative !important;
    z-index: 10 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Ensure date inputs work properly */
input[type="date"], input[type="time"] {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Ensure form groups are not blocked */
.step-content .form-group {
    position: relative;
    z-index: 5;
}

/* Ensure buttons are clickable */
.nav-btn, .choice-btn, button {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Choice Buttons */
.choice-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
    align-items: stretch;
}

.choice-btn {
    background: #ffffff;
    color: #1e293b;
    border: 2px solid #e2e8f0;
    padding: 40px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-height: 120px;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: visible;
}

.choice-btn h3,
.choice-btn div,
.choice-btn small {
    color: #1e293b !important;
}

.choice-btn:hover {
    border-color: #6366f1;
    background-color: #f8fafc;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.choice-btn.selected {
    border-color: #6366f1;
    background-color: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-5px);
}

.choice-btn.selected h3,
.choice-btn.selected div,
.choice-btn.selected small {
    color: #1e293b !important;
}

.choice-btn.selected:hover {
    background-color: rgba(99, 102, 241, 0.08);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.choice-btn .icon {
    font-size: 2.5em;
    margin-bottom: 8px;
    animation: float 3s ease-in-out infinite;
}

.choice-btn:nth-child(even) .icon {
    animation-delay: 1.5s;
}

/* Icon Wrapper for Lucide Icons */
.icon-wrapper {
    width: 64px;
    height: 64px;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.icon-wrapper svg {
    width: 28px;
    height: 28px;
    color: #6366f1;
    stroke-width: 2;
}

.choice-btn.selected .icon-wrapper {
    background-color: #6366f1;
}

.choice-btn.selected .icon-wrapper svg {
    color: #ffffff;
}

.choice-btn:hover .icon-wrapper {
    transform: scale(1.05);
}

/* Navigation Buttons */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.nav-btn {
    background-color: #6366f1;
    color: #ffffff !important;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 10;
}

.nav-btn span {
    color: #ffffff !important;
    position: relative;
    z-index: 2;
}

.nav-btn:hover:not(:disabled) {
    background-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Button Variants */
.nav-btn.secondary {
    background: linear-gradient(135deg, var(--text-light) 0%, #4b5563 100%);
}

.nav-btn.secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.4);
}

.nav-btn.neutral {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
    box-shadow: none;
}

.nav-btn.neutral:hover:not(:disabled) {
    background-color: #f5f3ff;
    border-color: #6366f1;
    color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

.nav-btn.special {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1 !important;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    box-shadow: none;
}

.nav-btn.special span {
    color: #6366f1 !important;
}

.nav-btn.special:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
    color: #4f46e5 !important;
}

.nav-btn.special:hover:not(:disabled) span {
    color: #4f46e5 !important;
}

.nav-btn.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.nav-btn.danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.nav-btn.orange {
    background: var(--gradient-secondary);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.nav-btn.orange:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.nav-btn.yellow {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.nav-btn.yellow span {
    position: relative;
    z-index: 2;
}

.nav-btn.yellow::before {
    display: none;
}

.nav-btn.yellow:hover:not(:disabled) {
    color: var(--text-dark);
    border-color: var(--primary-color);
    background: rgba(91, 33, 182, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(91, 33, 182, 0.2);
    font-weight: 700;
}

.nav-btn.primary {
    background-color: #6366f1;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.nav-btn.primary span {
    color: #ffffff !important;
}

.nav-btn.primary:hover:not(:disabled) {
    background-color: #4f46e5;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.nav-btn.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.nav-btn.success:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* Logout Button with Image */
.logout-btn {
    background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(251, 113, 133, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
}

.logout-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Makes the image white */
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 113, 133, 0.4);
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}

/* Ghost Logout Button */
.logout-btn-ghost {
    background: transparent;
    color: #6b7280;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn-ghost svg {
    width: 18px;
    height: 18px;
    color: #6b7280;
    stroke-width: 2;
    transition: color 0.2s ease;
}

.logout-btn-ghost:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.logout-btn-ghost:hover svg {
    color: #ef4444;
}

/* Back Button - Outline Indigo */
.nav-btn.back {
    background: transparent;
    color: #6366f1 !important;
    border: 2px solid #6366f1;
    box-shadow: none;
    font-weight: 600;
}

.nav-btn.back span {
    color: #6366f1 !important;
}

.nav-btn.back:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5 !important;
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.nav-btn.back:hover:not(:disabled) span {
    color: #4f46e5 !important;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    background: #fafafa;
    margin: 30px 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #64748b;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(91, 33, 182, 0.05) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

.upload-area:hover {
    border-color: #6366f1;
    background: #f8fafc;
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
    color: #059669;
}

.file-input {
    display: none;
}

.file-label {
    background: #ffffff;
    color: #6366f1;
    padding: 12px 24px;
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
    font-size: 16px;
    margin: 10px;
    position: relative;
    overflow: hidden;
}

.file-label svg {
    width: 20px;
    height: 20px;
    color: #6366f1;
    stroke-width: 2;
}

.file-label::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.file-label:hover::before {
    width: 300px;
    height: 300px;
}

.file-label:hover {
    transform: translateY(-2px);
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.record-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px;
    position: relative;
    overflow: hidden;
}

.record-btn svg {
    width: 20px;
    height: 20px;
    color: white;
    stroke-width: 2;
}

.record-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.record-btn:hover::before {
    width: 300px;
    height: 300px;
}

.record-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.record-btn.recording {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    animation: recordingPulse 1s infinite;
}

/* Patient and Treatment Cards */
.patient-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.patient-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-color: #cbd5e1;
}

.session-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.session-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-color: #cbd5e1;
}

/* Patient select card */
.patient-select-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    position: relative;
}

.patient-select-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(91, 33, 182, 0.1);
}

.patient-select-card .nav-btn {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    min-width: fit-content;
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 14px;
}

.patient-select-card > div:first-child {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
    width: 100%;
}

.patient-select-card > div:first-child > div:first-child {
    flex: 1 1 200px;
    min-width: 0;
}

.patient-select-card > div:first-child > div:last-child {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

/* Delete buttons */
.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffffff;
    color: #ffffff;
    border: 2px solid #e5e7eb;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.9;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 16px;
}

.delete-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #ffffff;
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Modern Airy Confirmation Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #ffffff;
    border-radius: 28px;
    padding: 40px 24px 30px;
    width: 90%;
    max-width: 340px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

/* Modern Modal Icon */
.modal-icon {
    width: 72px;
    height: 72px;
    background-color: #fef2f2;
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 36px;
}

.modal-icon svg {
    width: 40px;
    height: 40px;
    color: #ef4444;
    stroke-width: 2.5;
}

/* Modern Modal Header - No Background Bar */
.modal-header {
    background: transparent;
    color: #1e293b;
    margin: 0;
    padding: 0;
    text-align: center;
    border-radius: 0;
}

.modal-header h3 {
    color: #1e293b;
    font-size: 1.25rem;
    margin: 0 0 12px 0;
    font-weight: 800;
}

/* Modern Modal Body */
.modal-body {
    margin-bottom: 24px;
    text-align: center;
    color: #64748b;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Modern Modal Footer - Horizontal Layout */
.modal-footer {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 0;
    width: 100%;
    justify-content: center;
    margin-top: 24px;
}

/* Primary Action Button (Confirm/Save) - Purple Bold */
.modal-footer .nav-btn:first-child {
    flex: 1;
    background-color: #6366f1 !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2) !important;
    height: 48px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.modal-footer .nav-btn:first-child:hover {
    background-color: #4f46e5 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3) !important;
}

/* Secondary Action Button (Cancel) - Transparent with Border */
.modal-footer .nav-btn:last-child,
.modal-footer .nav-btn.neutral {
    flex: 1;
    background: transparent !important;
    color: #64748b !important;
    border: 2px solid #e2e8f0 !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    box-shadow: none !important;
    height: 48px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.modal-footer .nav-btn:last-child:hover,
.modal-footer .nav-btn.neutral:hover {
    background: #f5f3ff !important;
    color: #8b5cf6 !important;
    border-color: #8b5cf6 !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15) !important;
}

/* Recording Animations */
@keyframes microphonePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

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

@keyframes recordingPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* WhatsApp-style Recording Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1.2);
    }
}

@keyframes waveBar {
    0%, 100% {
        height: 20px;
    }
    50% {
        height: 50px;
    }
}

/* Transcription Container Styles */
.transcription-container {
    width: 100%;
}

.transcription-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 15px;
    direction: rtl;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    color: #1e293b;
}

.text-area-wrapper {
    position: relative;
    width: 100%;
}

.text-area-wrapper .result-area {
    width: 100%;
    min-height: 250px;
    padding: 50px 20px 20px 20px;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    background-color: #fdfdfd;
    font-size: 18px;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
}

.btn-copy-float {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    z-index: 10;
}

.btn-copy-float:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-copy-float svg {
    width: 14px;
    height: 14px;
}

/* Desktop Responsive - Ensure Modal Looks Good */
@media (min-width: 769px) {
    /* Modal Footer - Keep Same as Mobile */
    .modal-footer {
        display: flex;
        flex-direction: row;
        gap: 20px;
        padding: 0;
        width: 100%;
        justify-content: center;
    }
    
    /* Both buttons - Fixed width like mobile */
    .modal-footer .nav-btn:first-child,
    .modal-footer .nav-btn.danger {
        width: 140px;
        height: 48px;
        flex: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Cancel button - Purple (Safe action) */
    .modal-footer .nav-btn:first-child {
        background-color: #6366f1 !important;
        color: white !important;
        border: none !important;
        padding: 14px !important;
        border-radius: 12px !important;
        font-weight: 700 !important;
        font-size: 1rem !important;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2) !important;
    }
    
    .modal-footer .nav-btn:first-child:hover {
        background-color: #4f46e5 !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3) !important;
    }
    
    /* Confirm button - Gray to Red (Dangerous action) */
    .modal-footer .nav-btn.danger {
        background: #f3f4f6 !important;
        color: #4b5563 !important;
        border: 1px solid #e5e7eb !important;
        padding: 14px !important;
        border-radius: 12px !important;
        font-weight: 600 !important;
        font-size: 1rem !important;
        box-shadow: none !important;
    }
    
    .modal-footer .nav-btn.danger:hover {
        background: #fee2e2 !important;
        color: #ef4444 !important;
        border-color: #fecaca !important;
        transform: translateY(-2px);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15) !important;
    }
}

/* ============================================ */
/* MODERN TOAST NOTIFICATIONS */
/* ============================================ */

/* Toast Spinner Animation */
@keyframes toast-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.toast-spinner {
    animation: toast-spin 1s linear infinite;
}

/* Modern Toast Container */
.modern-toast {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Mobile Positioning */
@media (max-width: 768px) {
    .modern-toast {
        top: 20px !important;
        bottom: auto !important;
        right: 50% !important;
        transform: translateX(50%) !important;
        max-width: 90% !important;
        min-width: 280px !important;
    }
    
    .modern-toast.show {
        transform: translateX(50%) translateY(0) !important;
        opacity: 1 !important;
    }
}

/* Desktop Positioning */
@media (min-width: 769px) {
    .modern-toast {
        top: 20px !important;
        right: 20px !important;
        transform: translateX(0) !important;
    }
}
