/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e8e8f5;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
}

/* Background Frame */
.background-frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

/* When UI is hidden, make background completely visible */
.ui-hidden .background-frame {
    opacity: 1;
}

.background-image {
    width: 100%;
    height: 100%;
    /* Dynamic theme-based background */
    background: linear-gradient(135deg, 
        var(--bg-primary, #1a1a2e) 0%, 
        var(--bg-secondary, #16213e) 50%, 
        var(--bg-tertiary, #0f3460) 100%);
    filter: brightness(0.6);
    transition: filter 0.5s ease, background 0.3s ease;
}

/* Remove filter completely when UI is hidden */
.ui-hidden .background-image {
    filter: none;
}

/* Main App Layout */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    position: relative;
    z-index: 1;
}

/* Left Sidebar: Timer */
.sidebar {
    width: 350px;
    min-width: 300px;
    max-width: 400px;
    background: rgba(30, 30, 50, 0.95);
    border-right: 2px solid rgba(139, 69, 197, 0.4);
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 69, 197, 0.5) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(139, 69, 197, 0.5);
    border-radius: 3px;
}

.sidebar.collapsed {
    width: 60px;
    min-width: 60px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(139, 69, 197, 0.2);
    background: rgba(20, 20, 35, 0.8);
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-toggle {
    background: rgba(139, 69, 197, 0.3);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #e8e8f5;
    margin-right: 12px;
}

.sidebar-toggle:hover {
    background: rgba(139, 69, 197, 0.5);
    transform: scale(1.05);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #b794f6;
    margin: 0;
}

.sidebar.collapsed .sidebar-title {
    display: none;
}

.sidebar-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Main Content Area: Notes */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(20, 20, 30, 0.8);
    min-width: 0; /* Allow shrinking */
}

.main-header {
    background: rgba(30, 30, 50, 0.95);
    border-bottom: 1px solid rgba(139, 69, 197, 0.2);
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.app-title {
    margin-bottom: 20px;
}

.app-title h1 {
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #b794f6 0%, #9f7aea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 5px 0;
}

.app-subtitle {
    font-size: 0.9rem;
    color: #a0a0b8;
    margin: 0;
}

/* Note Controls */
.note-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.note-selector-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.note-dropdown {
    flex: 1;
    max-width: 300px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(139, 69, 197, 0.4);
    border-radius: 8px;
    color: #e8e8f5;
    font-size: 0.9rem;
    cursor: pointer;
}

.note-dropdown:focus {
    outline: none;
    border-color: #b794f6;
    box-shadow: 0 0 0 2px rgba(183, 148, 246, 0.1);
}

.note-dropdown option {
    background: #1a1a2e;
    color: #e8e8f5;
}

.note-search {
    flex: 1;
    max-width: 200px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(139, 69, 197, 0.4);
    border-radius: 8px;
    color: #1a1a2e;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.note-search:focus {
    outline: none;
    border-color: #b794f6;
    box-shadow: 0 0 0 2px rgba(183, 148, 246, 0.1);
}

.note-search::placeholder {
    color: #a0a0b8;
}

.note-actions {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: linear-gradient(135deg, #b794f6 0%, #9f7aea 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(183, 148, 246, 0.4);
}

.btn-secondary {
    background: rgba(139, 69, 197, 0.3);
    color: #e8e8f5;
    border: 1px solid rgba(139, 69, 197, 0.5);
}

.btn-secondary:hover {
    background: rgba(139, 69, 197, 0.5);
    transform: translateY(-1px);
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(139, 69, 197, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(139, 69, 197, 0.3);
    border-color: #b794f6;
}

.btn-link {
    background: transparent;
    color: #b794f6;
    text-decoration: underline;
    border: none;
    padding: 4px 8px;
}

.btn-link:hover {
    color: #9f7aea;
}

/* Toolbar */
.toolbar {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.format-group {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 4px;
    border: 1px solid rgba(139, 69, 197, 0.2);
}

.format-btn {
    padding: 6px 10px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #e8e8f5;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.format-btn:hover {
    background: rgba(139, 69, 197, 0.3);
}

.format-btn.active {
    background: rgba(139, 69, 197, 0.5);
    color: #b794f6;
}

.theme-selector {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(139, 69, 197, 0.4);
    border-radius: 6px;
    color: #e8e8f5;
    font-size: 0.85rem;
    cursor: pointer;
}

.theme-selector:focus {
    outline: none;
    border-color: #b794f6;
}

.theme-selector option {
    background: #1a1a2e;
    color: #e8e8f5;
}

/* Editor Container */
.editor-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.note-title {
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--editor-bg, rgba(126, 84, 133, 0.95));
    border: none;
    color: #e8e8f5;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--primary-color, rgba(139, 69, 197, 0.2));
    transition: all 0.3s ease;
    min-height: 50px;
}

.note-title:focus {
    outline: none;
    border-color: var(--primary-color, #b794f6);
    box-shadow: 0 0 0 2px var(--primary-color, rgba(183, 148, 246, 0.1));
}

.note-title:empty:before {
    content: attr(placeholder);
    color: #a0a0b8;
    font-style: italic;
}

.note-editor {
    flex: 1;
    min-height: 400px;
    background: var(--editor-bg, rgba(126, 84, 133, 0.95));
    border: 1px solid var(--primary-color, rgba(139, 69, 197, 0.3));
    border-radius: 10px;
    padding: 20px;
    color: #e8e8f5;
    font-size: 16px;
    line-height: 1.6;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.note-editor:focus {
    outline: none;
    border-color: var(--primary-color, #b794f6);
    box-shadow: 0 0 0 3px var(--primary-color, rgba(183, 148, 246, 0.1));
    background: var(--editor-bg, rgba(126, 84, 133, 0.95));
}

.note-editor:empty:before {
    content: attr(placeholder);
    color: #a0a0b8;
    font-style: italic;
}

/* Editor Content Styling */
.note-editor h1, .note-editor h2, .note-editor h3 {
    color: var(--primary-color, #b794f6);
    margin: 1em 0 0.5em 0;
}

.note-editor h1 { font-size: 1.8rem; }
.note-editor h2 { font-size: 1.5rem; }
.note-editor h3 { font-size: 1.2rem; }

.note-editor p {
    margin: 0.5em 0;
}

.note-editor ul, .note-editor ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.note-editor li {
    margin: 0.2em 0;
}

.note-editor strong {
    color: #fff;
}

.note-editor em {
    color: #c8c8e0;
}

/* Settings Modal Controls */
.color-picker-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker {
    width: 40px;
    height: 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.color-value {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #a0a0b8;
}

.opacity-slider {
    width: 150px;
    margin: 0 10px;
}

.opacity-value {
    font-size: 0.9rem;
    color: #a0a0b8;
    min-width: 40px;
}

/* Modals */
.security-modal, .settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(30, 30, 50, 0.95);
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid rgba(139, 69, 197, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(139, 69, 197, 0.2);
}

.modal-header h2 {
    color: #b794f6;
    margin: 0;
    font-size: 1.5rem;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pin-input, .text-input, .recovery-input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(139, 69, 197, 0.4);
    border-radius: 8px;
    color: #e8e8f5;
    font-size: 1rem;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.text-input {
    text-align: left;
    font-family: inherit;
}

.pin-input:focus, .text-input:focus, .recovery-input:focus {
    outline: none;
    border-color: #b794f6;
    box-shadow: 0 0 0 3px rgba(183, 148, 246, 0.1);
}

.pin-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.settings-section {
    padding: 20px 0;
    border-bottom: 1px solid rgba(139, 69, 197, 0.2);
}

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

.settings-section h3 {
    color: #b794f6;
    margin: 0 0 15px 0;
    font-size: 1.2rem;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #a0a0b8;
    font-size: 0.9rem;
}

.import-export-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        max-width: none;
        height: auto;
        border-right: none;
        border-bottom: 2px solid rgba(139, 69, 197, 0.4);
    }
    
    .sidebar.collapsed {
        width: 100%;
        height: 60px;
    }
    
    .sidebar.collapsed .sidebar-content {
        display: none;
    }
    
    .main-header {
        padding: 15px;
    }
    
    .note-controls {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .note-selector-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .toolbar {
        gap: 10px;
    }
    
    .format-group {
        gap: 2px;
        padding: 2px;
    }
    
    .format-btn {
        padding: 4px 6px;
        font-size: 0.8rem;
    }
    
    .editor-container {
        padding: 15px;
    }
    
    .note-title {
        font-size: 1.3rem;
    }
    
    .note-editor {
        font-size: 14px;
        min-height: 300px;
    }
}

/* Sidebar Timer Components */
/* Sidebar Browser Warning */
.sidebar .browser-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    color: #fff3cd;
}

.sidebar .warning-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sidebar .warning-text {
    font-size: 0.8rem;
    line-height: 1.3;
}

.sidebar .warning-text strong {
    color: #fff;
}

/* Sidebar Timer Display */
.sidebar .timer-display {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(139, 69, 197, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(139, 69, 197, 0.5);
}

.sidebar .timer-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sidebar .countdown-section, .sidebar .end-time-section {
    text-align: center;
}

.sidebar .countdown-section span, .sidebar .end-time-section span {
    font-size: 1.8rem;
    font-weight: 600;
    color: #b794f6;
    display: block;
    font-family: 'Courier New', monospace;
    margin-bottom: 4px;
}

.sidebar .countdown-section .label, .sidebar .end-time-section .label {
    font-size: 0.75rem;
    color: #a0a0b8;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Sidebar Timer Components */
.sidebar .separator {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 69, 197, 0.5), transparent);
    border-radius: 1px;
}

/* Sidebar Auto-Start Section */
.sidebar .auto-start-section {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(76, 175, 80, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.sidebar .auto-start-section h4 {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: #81c784;
    font-weight: 500;
}

.sidebar .auto-start-toggle {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 15px;
}

.sidebar .auto-start-toggle label {
    font-size: 0.8rem;
    color: #e8e8f5;
    cursor: pointer;
    font-weight: 400;
    line-height: 1.3;
}

.sidebar .auto-start-settings {
    margin-top: 15px;
}

.sidebar .time-range {
    margin-bottom: 15px;
}

.sidebar .time-range > label {
    display: block;
    font-size: 0.8rem;
    color: #a0a0b8;
    margin-bottom: 8px;
    font-weight: 500;
}

.sidebar .time-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.sidebar .time-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar .time-group label {
    font-size: 0.75rem;
    color: #a0a0b8;
    font-weight: 400;
}

.sidebar .time-input {
    padding: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(139, 69, 197, 0.4);
    border-radius: 6px;
    color: #e8e8f5;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.sidebar .time-input:focus {
    outline: none;
    border-color: #b794f6;
    box-shadow: 0 0 0 2px rgba(183, 148, 246, 0.1);
}

.sidebar .auto-start-note {
    padding: 10px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(76, 175, 80, 0.2);
    margin-top: 10px;
}

.sidebar .auto-start-note p {
    font-size: 0.7rem;
    color: #a0a0b8;
    line-height: 1.3;
    margin: 0 0 5px 0;
}

.sidebar .auto-start-note p:last-child {
    margin-bottom: 0;
}

/* Sidebar Duration Section */
.sidebar .duration-section {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(139, 69, 197, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(139, 69, 197, 0.3);
}

.sidebar .duration-section h4 {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: #b794f6;
    font-weight: 500;
}

.sidebar .duration-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.sidebar .duration-btn {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(139, 69, 197, 0.3);
    border-radius: 6px;
    color: #e8e8f5;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
}

.sidebar .duration-btn:hover, .sidebar .duration-btn.active {
    background: rgba(139, 69, 197, 0.3);
    border-color: #b794f6;
    transform: translateY(-1px);
}

.sidebar .custom-duration {
    margin-top: 15px;
}

.sidebar .custom-duration label {
    display: block;
    font-size: 0.8rem;
    color: #a0a0b8;
    margin-bottom: 8px;
    font-weight: 500;
}

.sidebar .custom-inputs {
    display: grid;
    grid-template-columns: auto auto auto auto;
    gap: 6px;
    align-items: center;
}

.sidebar .custom-inputs input {
    padding: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(139, 69, 197, 0.4);
    border-radius: 6px;
    color: #e8e8f5;
    font-size: 0.8rem;
    max-width: 50px;
    text-align: center;
}

.sidebar .custom-inputs input:focus {
    outline: none;
    border-color: #b794f6;
    box-shadow: 0 0 0 2px rgba(183, 148, 246, 0.1);
}

.sidebar .custom-inputs span {
    font-size: 0.7rem;
    color: #a0a0b8;
    font-weight: 400;
}

/* Sidebar Discord Section */
.sidebar .discord-section {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(88, 101, 242, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(88, 101, 242, 0.4);
}

.sidebar .discord-section h4 {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: #7289da;
    font-weight: 500;
}

.sidebar .discord-toggle {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 15px;
}

.sidebar .discord-toggle label {
    font-size: 0.8rem;
    color: #e8e8f5;
    cursor: pointer;
    font-weight: 400;
    line-height: 1.3;
}

.sidebar .discord-settings {
    margin-top: 15px;
}

.sidebar .discord-settings label {
    display: block;
    font-size: 0.8rem;
    color: #a0a0b8;
    margin-bottom: 6px;
    font-weight: 500;
}

.sidebar .discord-input {
    width: 100%;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(139, 69, 197, 0.4);
    border-radius: 6px;
    color: #e8e8f5;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.sidebar .discord-input:focus {
    outline: none;
    border-color: #b794f6;
    box-shadow: 0 0 0 2px rgba(183, 148, 246, 0.1);
}

.sidebar .discord-note {
    font-size: 0.7rem;
    color: #a0a0b8;
    margin-top: 6px;
    font-style: italic;
    line-height: 1.3;
}

/* Sidebar Controls */
.sidebar .controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(20, 20, 35, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(139, 69, 197, 0.2);
}

.sidebar .controls .btn {
    padding: 10px 15px;
    font-size: 0.9rem;
    border-radius: 6px;
    width: 100%;
    justify-content: center;
}

/* Sidebar Status */
.sidebar .status {
    padding: 12px;
    border-top: 1px solid rgba(139, 69, 197, 0.2);
    background: rgba(20, 20, 35, 0.3);
    border-radius: 8px;
    margin-top: 10px;
}

.sidebar .status-message {
    font-size: 0.8rem;
    color: #b794f6;
    margin-bottom: 6px;
    text-align: center;
}

.sidebar .wake-lock-status {
    font-size: 0.7rem;
    color: #a0a0b8;
    text-align: center;
}

/* Sidebar Checkbox Styling */
.sidebar .checkbox {
    width: 16px;
    height: 16px;
    accent-color: #b794f6;
    flex-shrink: 0;
}

/* Sidebar Collapsed State */
.sidebar.collapsed .sidebar-content {
    display: none;
}

.sidebar.collapsed .sidebar-toggle {
    margin-right: 0;
}

.discord-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox {
    width: 20px;
    height: 20px;
    accent-color: #b794f6;
}

.discord-toggle label {
    font-size: 1rem;
    color: #e8e8f5;
    cursor: pointer;
    font-weight: 400;
}

.discord-settings {
    margin-top: 20px;
}

.discord-settings label {
    display: block;
    font-size: 1rem;
    color: #a0a0b8;
    margin-bottom: 8px;
    font-weight: 500;
}

.discord-input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(139, 69, 197, 0.4);
    border-radius: 8px;
    color: #e8e8f5;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.discord-input:focus {
    outline: none;
    border-color: #b794f6;
    box-shadow: 0 0 0 3px rgba(183, 148, 246, 0.1);
}

.discord-note {
    font-size: 0.9rem;
    color: #a0a0b8;
    margin-top: 10px;
    font-style: italic;
}

/* Control Buttons */
.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #b794f6 0%, #9f7aea 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(183, 148, 246, 0.4);
}

.btn-secondary {
    background: rgba(220, 53, 69, 0.8);
    color: white;
    border: 1px solid rgba(220, 53, 69, 0.5);
}

.btn-secondary:hover {
    background: rgba(220, 53, 69, 1);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.4);
}

/* Status */
.status {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(139, 69, 197, 0.2);
}

.status-message {
    font-size: 1.1rem;
    color: #b794f6;
    margin-bottom: 10px;
}

.wake-lock-status {
    font-size: 0.9rem;
    color: #a0a0b8;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-ui {
        padding: 20px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .duration-buttons {
        grid-template-columns: 1fr;
    }
    
    .duration-btn {
        padding: 12px;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .countdown-section span, .end-time-section span {
        font-size: 2rem;
    }
    
    .time-inputs {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .custom-inputs {
        grid-template-columns: 1fr auto 1fr auto;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pulse {
    animation: pulse 2s infinite;
}

/* UI State Classes */
.minimal-mode .main-ui {
    transform: scale(0.9);
    opacity: 0.8;
}

.minimal-mode .toggle-btn {
    display: block;
}

.timer-active .timer-display {
    animation: pulse 3s infinite;
}

.timer-active #countdown {
    color: #4ade80;
} 

/* Duration section disabled state */
.duration-section.disabled {
    opacity: 0.4;
    pointer-events: none;
    position: relative;
}

.duration-section.disabled::after {
    content: 'DISABLED - Using Focus Mode';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(139, 69, 19, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 10;
    pointer-events: none;
}

.duration-section.disabled .duration-buttons,
.duration-section.disabled .custom-duration {
    /* Blur removed for better readability */
} 