/* Modern Mantra Counter Styles */
.mantra-counter-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 640px;
    margin: 0 auto;
    padding: 24px;
    min-height: 100vh;
    line-height: 1.5;
    transition: all 0.3s ease;
    box-sizing: border-box;
    /* Prevent zooming on mobile */
    touch-action: manipulation;
}

/* User Registration Forms */
.user-registration form.user-registration-Login,
.user-registration form.user-registration-Registration,
.user-registration form.user-registration-LostPassword,
.user-registration form.user-registration-MyAccount {
    max-width: 400px;
    margin: 40px auto;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dark-mode .user-registration form.user-registration-Login,
.dark-mode .user-registration form.user-registration-Registration,
.dark-mode .user-registration form.user-registration-LostPassword,
.dark-mode .user-registration form.user-registration-MyAccount {
    background-color: #1f2937;
    border: 1px solid #374151;
}

.light-mode .user-registration form.user-registration-Login,
.light-mode .user-registration form.user-registration-Registration,
.light-mode .user-registration form.user-registration-LostPassword,
.light-mode .user-registration form.user-registration-MyAccount {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
}

.user-registration .ur-form-row {
    margin-bottom: 16px;
}

.user-registration label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.875rem;
}

.dark-mode .user-registration label {
    color: #d1d5db;
}

.light-mode .user-registration label {
    color: #4b5563;
}

.user-registration input[type="text"],
.user-registration input[type="email"],
.user-registration input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.dark-mode .user-registration input[type="text"],
.dark-mode .user-registration input[type="email"],
.dark-mode .user-registration input[type="password"] {
    background-color: #374151;
    border: 1px solid #4b5563;
    color: #ffffff;
}

.light-mode .user-registration input[type="text"],
.light-mode .user-registration input[type="email"],
.light-mode .user-registration input[type="password"] {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #111827;
}

.user-registration input[type="text"]:focus,
.user-registration input[type="email"]:focus,
.user-registration input[type="password"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.5);
    border-color: #10b981;
}

.user-registration button,
.user-registration input[type="submit"] {
    background-color: #10b981;
    color: #ffffff;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.light-mode .user-registration button,
.light-mode .user-registration input[type="submit"] {
    background-color: #059669;
}

.user-registration button:hover,
.user-registration input[type="submit"]:hover {
    opacity: 0.9;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.5);
}

.user-registration .ur-submit-button-container {
    text-align: center;
}

.user-registration .user-registration-error,
.user-registration .user-registration-message {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.875rem;
}

.user-registration .user-registration-error {
    background-color: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.light-mode .user-registration .user-registration-error {
    background-color: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

.user-registration .user-registration-message {
    background-color: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.light-mode .user-registration .user-registration-message {
    background-color: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.2);
    color: #059669;
}

/* Login message */
.login-message {
    text-align: center;
    padding: 40px 20px;
}

.login-message p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* No sessions message */
.no-sessions {
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    font-size: 0.875rem;
    background-color: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.light-mode .no-sessions {
    background-color: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

.no-sessions a {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
}

.light-mode .no-sessions a {
    color: #059669;
}

.no-sessions a:hover {
    text-decoration: underline;
}

/* Dark Mode */
.mantra-counter-container.dark-mode {
    background-color: #111827;
    color: #ffffff;
}

/* Light Mode */
.mantra-counter-container.light-mode {
    background-color: #f9fafb;
    color: #111827;
}

/* Theme Toggle */
.theme-toggle-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 40px;
    height: 40px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dark-mode .theme-toggle {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.light-mode .theme-toggle {
    color: #111827;
    background-color: rgba(0, 0, 0, 0.05);
}

.theme-toggle:hover,
.theme-toggle:focus {
    opacity: 0.8;
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.sun-icon,
.moon-icon {
    position: absolute;
    transition: opacity 0.3s ease;
    width: 20px;
    height: 20px;
}

.dark-mode .sun-icon {
    opacity: 0;
}

.dark-mode .moon-icon {
    opacity: 1;
}

.light-mode .sun-icon {
    opacity: 1;
}

.light-mode .moon-icon {
    opacity: 0;
}

/* Header */
.header-section {
    text-align: center;
    margin-bottom: 32px;
}

.header-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.dark-mode .header-section h2 {
    color: #ffffff;
}

.light-mode .header-section h2 {
    color: #111827;
}

.subtitle {
    margin: 0;
    font-size: 1rem;
}

.dark-mode .subtitle {
    color: #9ca3af;
}

.light-mode .subtitle {
    color: #6b7280;
}

/* Counter Cards */
.counter-card {
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dark-mode .counter-card {
    background-color: #1f2937;
    border: 1px solid #374151;
}

.light-mode .counter-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
}

.counter-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.dark-mode .counter-card h3 {
    color: #ffffff;
}

.light-mode .counter-card h3 {
    color: #111827;
}

/* Recent Sessions */
.recent-sessions-list {
    margin-top: 16px;
}

.loading-sessions {
    text-align: center;
    padding: 16px;
    color: #6b7280;
}

.dark-mode .loading-sessions {
    color: #9ca3af;
}

.sessions-list {
    display: grid;
    gap: 12px;
}

.session-item {
    padding: 12px 16px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 16px;
}

.dark-mode .session-item {
    background-color: #374151;
}

.light-mode .session-item {
    background-color: #f3f4f6;
}

.session-meta {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.dark-mode .session-meta {
    color: #9ca3af;
}

.light-mode .session-meta {
    color: #6b7280;
}

.session-mantra {
    font-weight: 500;
}

.session-count {
    text-align: right;
    font-weight: 600;
}

.dark-mode .session-count {
    color: #10b981;
}

.light-mode .session-count {
    color: #059669;
}

/* Daily Goal Selector */
.goal-selector-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.modern-select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark-mode .modern-select {
    background-color: #374151;
    border: 1px solid #4b5563;
    color: #ffffff;
}

.light-mode .modern-select {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #111827;
}

.modern-select:hover {
    opacity: 0.9;
}

.modern-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.5);
    border-color: #10b981;
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: transform 0.2s ease;
}

.dark-mode .select-arrow {
    color: #9ca3af;
}

.light-mode .select-arrow {
    color: #6b7280;
}

/* Mantra Section */
.mantra-display {
    text-align: center;
}

#current-mantra-text {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.dark-mode #current-mantra-text {
    color: #10b981;
}

.light-mode #current-mantra-text {
    color: #059669;
}

.change-mantra-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid;
}

.dark-mode .change-mantra-btn {
    background-color: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.light-mode .change-mantra-btn {
    background-color: rgba(5, 150, 105, 0.1);
    border-color: rgba(5, 150, 105, 0.2);
    color: #059669;
}

.change-mantra-btn:hover,
.change-mantra-btn:focus {
    opacity: 0.9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.5);
}

/* Mantra Editor */
.mantra-editor {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid;
}

.dark-mode .mantra-editor {
    border-color: #374151;
}

.light-mode .mantra-editor {
    border-color: #e5e7eb;
}

.mantra-editor input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.dark-mode .mantra-editor input {
    background-color: #374151;
    border: 1px solid #4b5563;
    color: #ffffff;
}

.light-mode .mantra-editor input {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #111827;
}

.mantra-editor input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.5);
    border-color: #10b981;
}

.show-presets-btn {
    background: none;
    border: none;
    font-size: 0.875rem;
    cursor: pointer;
    margin-bottom: 8px;
    padding: 0;
    transition: color 0.2s ease;
}

.dark-mode .show-presets-btn {
    color: #10b981;
}

.light-mode .show-presets-btn {
    color: #059669;
}

.show-presets-btn:hover,
.show-presets-btn:focus {
    text-decoration: underline;
    outline: none;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.preset-btn {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid;
}

.dark-mode .preset-btn {
    background-color: #1f2937;
    border-color: #4b5563;
    color: #ffffff;
}

.light-mode .preset-btn {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}

.preset-btn:hover,
.preset-btn:focus {
    opacity: 0.9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.5);
}

.mantra-editor-buttons {
    display: flex;
    gap: 12px;
}

/* Input Error Message */
.input-error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: -12px;
    margin-bottom: 12px;
    text-align: left;
}

/* Count Display */
.count-display-container {
    text-align: center;
}

#total-count-display {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.dark-mode #total-count-display {
    color: #10b981;
}

.light-mode #total-count-display {
    color: #059669;
}

.count-label {
    margin-bottom: 4px;
}

.dark-mode .count-label {
    color: #9ca3af;
}

.light-mode .count-label {
    color: #6b7280;
}

.session-count {
    font-size: 1.125rem;
    font-weight: 500;
}

.dark-mode .session-count {
    color: #10b981;
}

.light-mode .session-count {
    color: #059669;
}

/* Mode Toggle */
.mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border-radius: 12px;
    padding: 8px;
}

.dark-mode .mode-toggle {
    background-color: #374151;
    border: 1px solid #4b5563;
}

.light-mode .mode-toggle {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
}

.mode-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark-mode .mode-btn {
    color: #9ca3af;
}

.light-mode .mode-btn {
    color: #6b7280;
}

.mode-btn:hover,
.mode-btn:focus {
    opacity: 0.9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.5);
}

.mode-btn.active {
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dark-mode .mode-btn.active {
    background-color: #10b981;
}

.light-mode .mode-btn.active {
    background-color: #059669;
}

.voice-not-supported {
    text-align: center;
    font-size: 0.75rem;
    margin-top: 8px;
}

.dark-mode .voice-not-supported {
    color: #6b7280;
}

.light-mode .voice-not-supported {
    color: #9ca3af;
}

/* Counter Circle */
.counter-circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.counter-circle {
    width: 192px;
    height: 192px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border: 4px solid;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* Prevent zooming on mobile */
    touch-action: manipulation;
}

.dark-mode .counter-circle {
    border-color: rgba(16, 185, 129, 0.2);
}

.light-mode .counter-circle {
    border-color: rgba(5, 150, 105, 0.2);
}

.counter-circle.tap-mode {
    background: linear-gradient(135deg, #10b981, #059669);
}

.counter-circle.tap-mode:hover,
.counter-circle.tap-mode:focus {
    background: linear-gradient(135deg, #059669, #047857);
    transform: scale(0.98);
    outline: none;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.5);
}

.counter-circle.tap-feedback {
    transform: scale(0.95);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.counter-circle.voice-mode {
    background: linear-gradient(135deg, #10b981, #059669);
}

.counter-circle.voice-mode.listening {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.counter-circle.voice-mode.listening:hover,
.counter-circle.voice-mode.listening:focus {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    outline: none;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.5);
}

.counter-circle.voice-detected {
    animation: voiceDetectPulse 0.3s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.2), 0 6px 8px -3px rgba(0, 0, 0, 0.1);
    }
}

@keyframes voiceDetectPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.counter-circle-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.counter-text {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 12px;
}

.counter-instruction {
    font-size: 0.875rem;
    margin-top: 16px;
    text-align: center;
}

.dark-mode .counter-instruction {
    color: #9ca3af;
}

.light-mode .counter-instruction {
    color: #6b7280;
}

/* Voice Status */
.voice-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.875rem;
}

.dark-mode .voice-status {
    background-color: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.light-mode .voice-status {
    background-color: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.2);
    color: #059669;
}

.voice-error {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.dark-mode .voice-error {
    background-color: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.light-mode .voice-error {
    background-color: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

/* Progress Section */
.goal-progress-container {
    margin-bottom: 16px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.dark-mode .progress-header {
    color: #d1d5db;
}

.light-mode .progress-header {
    color: #4b5563;
}

.progress-bar {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.dark-mode .progress-bar {
    background-color: #374151;
}

.light-mode .progress-bar {
    background-color: #e5e7eb;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    width: 100%;
    transition: width 0.5s ease-out;
}

.progress-text {
    text-align: center;
    font-size: 0.75rem;
}

.dark-mode .progress-text {
    color: #9ca3af;
}

.light-mode .progress-text {
    color: #6b7280;
}

.goal-achieved {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
}

.dark-mode .goal-achieved {
    background-color: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.light-mode .goal-achieved {
    background-color: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.2);
    color: #059669;
}

.no-goal-message {
    text-align: center;
    padding: 32px 0;
}

.no-goal-title {
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.dark-mode .no-goal-title {
    color: #ffffff;
}

.light-mode .no-goal-title {
    color: #111827;
}

.no-goal-subtitle {
    font-size: 0.875rem;
}

.dark-mode .no-goal-subtitle {
    color: #9ca3af;
}

.light-mode .no-goal-subtitle {
    color: #6b7280;
}

/* Session Controls */
.session-controls {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid;
}

.dark-mode .session-controls {
    border-color: #374151;
}

.light-mode .session-controls {
    border-color: #e5e7eb;
}

.session-controls-header {
    text-align: center;
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.dark-mode .session-controls-header {
    color: #d1d5db;
}

.light-mode .session-controls-header {
    color: #4b5563;
}

.session-count-display {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.dark-mode .session-count-display {
    color: #10b981;
}

.light-mode .session-count-display {
    color: #059669;
}

.session-duration {
    text-align: center;
    font-size: 0.75rem;
    margin-bottom: 16px;
}

.dark-mode .session-duration {
    color: #6b7280;
}

.light-mode .session-duration {
    color: #9ca3af;
}

.session-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.dark-mode .btn-primary {
    background-color: #10b981;
    color: #ffffff;
}

.light-mode .btn-primary {
    background-color: #059669;
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    opacity: 0.9;
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.5);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.dark-mode .btn-secondary {
    background-color: #4b5563;
    color: #ffffff;
}

.light-mode .btn-secondary {
    background-color: #d1d5db;
    color: #111827;
}

.btn-secondary:hover,
.btn-secondary:focus {
    opacity: 0.9;
    outline: none;
    box-shadow: 0 0 0 3px rgba(75, 85, 99, 0.5);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-content {
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.dark-mode .modal-content {
    background-color: #1f2937;
    border: 1px solid #374151;
}

.light-mode .modal-content {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.dark-mode .modal-header h3 {
    color: #ffffff;
}

.light-mode .modal-header h3 {
    color: #111827;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.dark-mode .close-btn {
    color: #9ca3af;
}

.light-mode .close-btn {
    color: #6b7280;
}

.close-btn:hover,
.close-btn:focus {
    opacity: 0.8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.5);
}

.modal-body {
    margin-bottom: 24px;
}

.modal-body label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.dark-mode .modal-body label {
    color: #d1d5db;
}

.light-mode .modal-body label {
    color: #4b5563;
}

.modal-body input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 1rem;
    box-sizing: border-box;
}

.dark-mode .modal-body input {
    background-color: #374151;
    border: 1px solid #4b5563;
    color: #ffffff;
}

.light-mode .modal-body input {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #111827;
}

.modal-body input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.5);
    border-color: #10b981;
}

.modal-footer {
    display: flex;
    gap: 12px;
}

/* Footer */
.footer-section {
    text-align: center;
    padding-top: 32px;
    font-size: 0.875rem;
}

.dark-mode .footer-section {
    color: #6b7280;
}

.light-mode .footer-section {
    color: #9ca3af;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 640px) {
    .mantra-counter-container {
        padding: 16px;
    }
    
    .counter-card {
        padding: 16px;
    }
    
    #current-mantra-text {
        font-size: 1.5rem;
    }
    
    #total-count-display {
        font-size: 2.5rem;
    }
    
    .counter-circle {
        width: 160px;
        height: 160px;
    }
    
    .preset-buttons {
        grid-template-columns: 1fr;
    }
    
    .session-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .session-meta {
        grid-column: auto;
    }
    
    .session-count {
        text-align: left;
    }
    
    .user-registration form.user-registration-Login,
    .user-registration form.user-registration-Registration,
    .user-registration form.user-registration-LostPassword,
    .user-registration form.user-registration-MyAccount {
        margin: 20px 16px;
        padding: 16px;
    }
}