/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    direction: rtl;
    font-size: 18px; /* הוגדל בשתי דרגות */
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

header h1 {
    font-size: 3rem; /* הוגדל מ-2.5rem */
    color: #4a5568;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    font-size: 1.3rem; /* הוגדל מ-1.1rem */
    color: #718096;
}

/* Main Content */
main {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Controls */
.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem; /* הוגדל מ-1rem */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #333;
}

.btn-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #333;
}

.btn-info {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.icon {
    font-size: 1.2rem;
}

/* Status */
.status {
    text-align: center;
    margin-bottom: 30px;
}

.status-text {
    font-size: 1.3rem; /* הוגדל מ-1.1rem */
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.status-text.info {
    background: #e6fffa;
    color: #234e52;
    border: 1px solid #81e6d9;
}

.status-text.recording {
    background: #fef5e7;
    color: #744210;
    border: 1px solid #f6e05e;
}

.status-text.error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

.status-text.stopped {
    background: #e2e8f0;
    color: #2d3748;
    border: 1px solid #a0aec0;
}

.status-text.interim {
    background: #ebf8ff;
    color: #2c5282;
    border: 1px solid #90cdf4;
}

.status-text.cleared {
    background: #f0fff4;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.status-text.success {
    background: #e6fffa;
    color: #234e52;
    border: 1px solid #81e6d9;
}

/* Replit Warning */
.replit-warning {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    border: 1px solid #ffc107;
    font-size: 1.1rem;
    line-height: 1.6;
}

.replit-warning.hidden {
    display: none !important;
}

/* Recording Indicator */
.recording-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    color: #e53e3e;
}

.recording-indicator.hidden {
    display: none;
}

.pulse {
    width: 12px;
    height: 12px;
    background: #e53e3e;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Text Output */
.text-output {
    margin-bottom: 30px;
}

.text-output label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #4a5568;
    font-size: 1.1rem;
}

#outputText {
    width: 100%;
    min-height: 200px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.2rem; /* הוגדל מ-1rem */
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

#outputText:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#outputText::placeholder {
    color: #a0aec0;
    font-style: italic;
}

/* Settings */
.settings {
    background: #f7fafc;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.settings h3 {
    margin-bottom: 20px;
    color: #4a5568;
    font-size: 1.3rem;
}

.setting-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.setting-group label {
    font-weight: 600;
    color: #4a5568;
    min-width: 80px;
}

#languageSelect {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

#languageSelect:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-label {
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    color: #718096;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 2rem;
    }

    .controls {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .setting-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .setting-group label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    header {
        padding: 20px;
    }

    main {
        padding: 20px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    body {
        background: #000;
        color: #fff;
    }

    .container {
        background: #000;
    }

    header, main, footer {
        background: #000;
        border: 2px solid #fff;
    }
}
