/* Small Reset Button */
.btn-reset-small {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    border: none;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    display: inline-block;
    margin-bottom: 15px;
}

.btn-reset-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

.step-header-actions {
    text-align: right;
    margin-bottom: 20px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Amiri', sans-serif;
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

body[dir="rtl"] {
    font-family: 'Amiri', 'Inter', sans-serif;
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: white;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    gap: 5px;
}

.lang-btn {
    padding: 8px 20px;
    text-decoration: none;
    color: #555;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
}

.lang-btn.active {
    background: #2c3e50;
    color: white;
}

.lang-btn:hover {
    background: #eee;
}

/* App Container */
.app-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    min-height: 600px;
}

/* Common Screen Styles */
.screen-content {
    padding: 40px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

/* Welcome Screen */
.logo {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.logo h1 {
    font-size: 3.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-style: italic;
}

.welcome-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 40px;
    margin: 20px 0;
    text-align: center;
}

.question {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 40px;
    line-height: 1.4;
}

.choice-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.btn-yes, .btn-no {
    display: block;
    padding: 20px;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-yes {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.btn-no {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-yes:hover, .btn-no:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.btn-text {
    background: none;
    border: none;
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
    font-size: 1rem;
    padding: 10px;
}

.privacy-badge {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.privacy-badge span {
    background: #e8f6f3;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #16a085;
}

/* Step Screens */
.step-header {
    margin-bottom: 30px;
}

.step-header h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.step-header p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Journal Form */
.journal-box textarea {
    width: 100%;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 150px;
    margin-bottom: 20px;
    font-family: inherit;
}

.journal-box textarea:focus {
    outline: none;
    border-color: #3498db;
}

 /*Feelings Sliders*/ 
/*.feelings-grid {
    display: grid;
    gap: 25px;
    margin: 30px 0;
}

.feeling-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.feeling-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: block;
}

.slider-container {
    margin: 20px 0;
}

.slider {
    width: 100%;
    height: 10px;
    -webkit-appearance: none;
    background: #ecf0f1;
    border-radius: 5px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid #3498db;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: #95a5a6;
    font-size: 0.9rem;
}*/


/* Feelings Sliders - Fixed Width */
.feelings-grid {
    display: grid;
    gap: 25px;
    margin: 30px 0;
}

.feeling-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.feeling-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: block;
}

/* Slider Container */
.slider-container {
    margin: 20px 0;
    width: 100%;
    position: relative;
    height: 40px; /* Increased height for better touch target */
}

/* Custom Slider Styling */
.slider {
    width: 100%;
    height: 10px;
    -webkit-appearance: none;
    appearance: none;
    background: #ecf0f1;
    border-radius: 5px;
    outline: none;
    margin: 15px 0;
    padding: 0;
}

/* Slider Track */
.slider::-webkit-slider-track {
    width: 100%;
    height: 10px;
    background: #ecf0f1;
    border-radius: 5px;
    border: none;
}

.slider::-moz-range-track {
    width: 100%;
    height: 10px;
    background: #ecf0f1;
    border-radius: 5px;
    border: none;
}

/* Slider Thumb */
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid #3498db;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    margin-top: -7px; /* Center the thumb vertically */
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid #3498db;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: none;
}

/* Slider Labels */
.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: #95a5a6;
    font-size: 0.9rem;
    width: 100%;
}

/* Slider Value Display */
.slider-value {
    text-align: center;
    font-weight: bold;
    color: #3498db;
    font-size: 1.2rem;
    margin-top: 10px;
    min-height: 30px;
}

/* Current Value Display */
.current-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #3498db;
    text-align: center;
    margin-top: 10px;
}

/* For RTL languages */
body[dir="rtl"] .slider-labels {
    flex-direction: row-reverse;
}

/* Buttons */
.form-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn-primary, .btn-outline {
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    flex: 1;
}

.btn-outline {
    background: white;
    border: 2px solid #3498db;
    color: #3498db;
    flex: 1;
}

.btn-primary:hover, .btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Focus Session */
.focus-instructions {
    background: #fff9e6;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
}

.instruction-card ol {
    margin-left: 20px;
    margin-top: 15px;
}

.instruction-card li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.btn-focus {
    display: block;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border: none;
    padding: 25px 50px;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    margin: 40px auto;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.btn-focus:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(155, 89, 182, 0.3);
}

/* Breathing Animation */
.breathing-container {
    text-align: center;
    padding: 40px;
}

.breathing-animation {
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
    position: relative;
}

.breath-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #9b59b6);
    animation: breathe 4s infinite ease-in-out;
}

@keyframes breathe {
    0%, 100% { transform: scale(0.8); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

.breath-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    animation: textPulse 4s infinite ease-in-out;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.countdown-timer {
    margin: 40px auto;
}

.timer-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #2c3e50;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
    font-weight: bold;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(44, 62, 80, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(44, 62, 80, 0); }
}

/* Review Screen */
.journal-review {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
}

.review-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.review-section:last-child {
    border-bottom: none;
}

.review-section h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.review-content {
    background: white;
    padding: 15px;
    border-radius: 10px;
    line-height: 1.6;
}

/* Star Rating */
.star-rating {
    text-align: center;
    margin: 30px 0;
}

.stars {
    font-size: 2.5rem;
    color: #ddd;
    margin-bottom: 10px;
}

.stars a {
    text-decoration: none;
    color: inherit;
    margin: 0 5px;
}

.stars .active {
    color: #f1c40f;
}

.stars a:hover {
    color: #f1c40f;
}

.assessment-options {
    background: #e8f6f3;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
}

.option-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.btn-option {
    padding: 18px;
    border: 2px solid #1abc9c;
    background: white;
    color: #1abc9c;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.btn-option:hover {
    background: #1abc9c;
    color: white;
}

.final-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

/* Forms */
form {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        margin: 10px;
    }
    
    .screen-content {
        padding: 20px;
    }
    
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .question {
        font-size: 1.5rem;
    }
    
    .final-actions {
        flex-direction: column;
    }
    
    .language-selector {
        top: 10px;
        right: 10px;
    }
}