/* Desktop-Specific Functional Enhancements */

@media screen and (min-width: 768px) {
    /* Desktop-only visibility */
    .desktop-only {
        display: block !important;
    }
    
    /* Keyboard shortcuts indicator */
    .hotkey-indicator {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 14px;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s;
        z-index: 10000;
    }
    
    .hotkey-indicator.show {
        opacity: 1;
    }
    
    /* Session tabs */
    .session-tabs {
        background: rgba(10, 10, 10, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 8px 16px;
        display: flex;
        gap: 8px;
        overflow-x: auto;
    }
    
    .tabs-container {
        display: flex;
        gap: 8px;
        align-items: center;
    }
    
    .session-tab {
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 6px 16px;
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.2s;
        white-space: nowrap;
    }
    
    .session-tab:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .session-tab.active {
        background: var(--accent);
        color: black;
        border-color: var(--accent);
    }
    
    .session-tab-add {
        background: transparent;
        color: var(--accent);
        border: 1px dashed rgba(255, 255, 255, 0.2);
        padding: 6px 12px;
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .session-tab-add:hover {
        border-color: var(--accent);
        background: rgba(255, 165, 0, 0.1);
    }
    
    /* Quick stats panel */
    .quick-stats-panel {
        padding: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    
    .stats-title {
        font-size: 12px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.5);
        margin-bottom: 12px;
        letter-spacing: 1px;
    }
    
    .stat-item {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        font-size: 14px;
    }
    
    .stat-label {
        color: rgba(255, 255, 255, 0.6);
    }
    
    .stat-value {
        color: var(--accent);
        font-weight: 600;
    }
    
    /* Notes sidebar */
    .notes-sidebar {
        position: fixed;
        right: 0;
        top: 60px;
        bottom: 0;
        width: 300px;
        background: rgba(10, 10, 10, 0.98);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        flex-direction: column;
        transition: transform 0.3s;
        z-index: 50;
    }
    
    .notes-sidebar.collapsed {
        transform: translateX(260px);
    }
    
    .notes-header {
        padding: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .notes-header h3 {
        margin: 0;
        font-size: 16px;
        color: white;
    }
    
    .notes-toggle {
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.6);
        cursor: pointer;
        font-size: 18px;
        padding: 4px 8px;
    }
    
    .notes-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 16px;
    }
    
    .notes-timestamps {
        flex: 1;
        overflow-y: auto;
        margin-bottom: 16px;
    }
    
    .timestamped-note {
        display: flex;
        gap: 12px;
        padding: 8px;
        border-radius: 8px;
        margin-bottom: 8px;
        background: rgba(255, 255, 255, 0.03);
        align-items: center;
    }
    
    .note-time {
        color: var(--accent);
        font-weight: 600;
        font-size: 12px;
        min-width: 50px;
    }
    
    .note-text {
        flex: 1;
        color: rgba(255, 255, 255, 0.9);
        font-size: 14px;
    }
    
    .note-delete {
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.3);
        cursor: pointer;
        font-size: 18px;
        padding: 0 4px;
    }
    
    .note-delete:hover {
        color: #ff4444;
    }
    
    .notes-input-group {
        display: flex;
        gap: 8px;
    }
    
    #quickNoteInput {
        flex: 1;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
        padding: 8px 12px;
        border-radius: 20px;
        font-size: 14px;
    }
    
    #addQuickNote {
        background: var(--accent);
        color: black;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Timer presets */
    .timer-presets {
        display: flex;
        gap: 8px;
        margin-top: 16px;
        justify-content: center;
    }
    
    .preset-btn {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.7);
        padding: 8px 16px;
        border-radius: 20px;
        cursor: pointer;
        font-size: 13px;
        transition: all 0.2s;
    }
    
    .preset-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border-color: var(--accent);
    }
    
    /* Chart view selector */
    .chart-view-selector {
        display: flex;
        gap: 8px;
        margin-bottom: 16px;
        background: rgba(0, 0, 0, 0.5);
        padding: 8px;
        border-radius: 12px;
    }
    
    .chart-view-btn {
        flex: 1;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.6);
        padding: 8px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 13px;
        transition: all 0.2s;
    }
    
    .chart-view-btn:hover {
        background: rgba(255, 255, 255, 0.05);
        color: white;
    }
    
    .chart-view-btn.active {
        background: var(--accent);
        color: black;
        border-color: var(--accent);
    }
    
    /* Chart controls */
    .chart-controls {
        position: absolute;
        top: 16px;
        right: 16px;
        display: flex;
        gap: 8px;
        background: rgba(0, 0, 0, 0.8);
        padding: 8px;
        border-radius: 8px;
    }
    
    .chart-controls button {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        width: 32px;
        height: 32px;
        border-radius: 4px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }
    
    .chart-controls button:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    /* Data table */
    .data-table-container {
        margin-top: 24px;
        padding: 16px;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 12px;
    }
    
    .table-wrapper {
        overflow-x: auto;
        margin: 16px 0;
    }
    
    .roast-data-table {
        width: 100%;
        border-collapse: collapse;
    }
    
    .roast-data-table th {
        background: rgba(255, 165, 0, 0.1);
        color: var(--accent);
        padding: 12px;
        text-align: left;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .roast-data-table td {
        padding: 10px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.8);
        font-size: 14px;
    }
    
    .roast-data-table tr:hover td {
        background: rgba(255, 255, 255, 0.03);
    }
    
    .table-actions {
        display: flex;
        gap: 8px;
        justify-content: flex-end;
    }
    
    .table-actions button {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.7);
        padding: 8px 16px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 13px;
        transition: all 0.2s;
    }
    
    .table-actions button:hover {
        background: var(--accent);
        color: black;
        border-color: var(--accent);
    }
    
    /* Context menu */
    .context-menu {
        position: fixed;
        background: rgba(20, 20, 20, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 4px;
        display: none;
        z-index: 10000;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .context-menu-item {
        padding: 8px 16px;
        color: rgba(255, 255, 255, 0.9);
        cursor: pointer;
        border-radius: 4px;
        font-size: 14px;
    }
    
    .context-menu-item:hover {
        background: rgba(255, 165, 0, 0.2);
        color: white;
    }
    
    /* Drag and drop */
    .drag-over {
        position: relative;
    }
    
    .drag-over::after {
        content: 'Drop files here to import';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(255, 165, 0, 0.1);
        border: 2px dashed var(--accent);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: var(--accent);
        z-index: 1000;
    }
    
    /* Panel toggle */
    .panel-toggle {
        position: fixed;
        top: 70px;
        right: 320px;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.1);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 100;
        transition: all 0.2s;
    }
    
    .panel-toggle:hover {
        background: var(--accent);
        color: black;
        border-color: var(--accent);
    }
    
    /* Split view */
    .views-container.split-view {
        padding: 16px;
    }
    
    .views-container.split-view .view {
        height: calc(100vh - 140px);
        overflow-y: auto;
    }
    
    /* Export modal */
    .export-modal,
    .shortcuts-modal {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10000;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    .export-content,
    .shortcuts-content {
        background: rgba(20, 20, 20, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 24px;
        max-width: 500px;
        width: 90%;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .export-content h3,
    .shortcuts-content h3 {
        margin: 0 0 20px;
        color: white;
        font-size: 20px;
    }
    
    .export-options {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .export-option {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 16px;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .export-option:hover {
        background: rgba(255, 165, 0, 0.1);
        border-color: var(--accent);
        transform: translateY(-2px);
    }
    
    .export-icon {
        font-size: 24px;
    }
    
    .export-close,
    .shortcuts-close {
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
        padding: 12px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.2s;
    }
    
    .export-close:hover,
    .shortcuts-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    /* Shortcuts list */
    .shortcuts-list {
        margin-bottom: 20px;
    }
    
    .shortcut-item {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .shortcut-key {
        background: rgba(255, 165, 0, 0.2);
        color: var(--accent);
        padding: 4px 8px;
        border-radius: 4px;
        font-family: monospace;
        font-weight: 600;
    }
    
    .shortcut-desc {
        color: rgba(255, 255, 255, 0.8);
        font-size: 14px;
    }
    
    /* Desktop notification */
    .desktop-notification {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.9);
        color: white;
        padding: 12px 24px;
        border-radius: 24px;
        border: 1px solid rgba(255, 165, 0, 0.3);
        font-size: 14px;
        z-index: 10001;
        animation: slideDown 0.3s;
    }
    
    .desktop-notification.fade-out {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
        transition: all 0.3s;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }
    
    /* Responsive adjustments for larger screens */
    @media screen and (min-width: 1400px) {
        .notes-sidebar {
            width: 350px;
        }
        
        .chart-view-selector {
            max-width: 600px;
            margin: 0 auto 16px;
        }
    }
}