/* Declutter Slot Machine - Minimal Base Styles */

.dsm-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1rem;
}

/* Mode Selector */
.dsm-mode-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.dsm-mode-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dsm-mode-btn:hover {
    border-color: #999;
}

.dsm-mode-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Slot Machine Wheels */
.dsm-slot-machine {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.dsm-wheel-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dsm-wheel-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dsm-wheel {
    width: 100%;
    min-height: 120px;
    border: 3px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.dsm-wheel.spinning {
    border-color: #666;
    background: #fff;
    animation: wheelSpin 0.1s ease-in-out infinite;
}

@keyframes wheelSpin {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.dsm-wheel-value {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    word-wrap: break-word;
}

/* Controls */
.dsm-controls {
    text-align: center;
    margin-bottom: 2rem;
}

.dsm-spin-btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.dsm-spin-btn:hover {
    background: #555;
}

.dsm-spin-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Result */
.dsm-result {
    text-align: center;
    padding: 1.5rem;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.dsm-result h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.dsm-result-text {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Timer Section */
.dsm-timer-section {
    text-align: center;
    margin-bottom: 2rem;
}

.dsm-timer-display {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    font-family: monospace;
}

.dsm-timer-display.complete {
    color: #4caf50;
    animation: pulse 0.5s ease-in-out 3;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.dsm-timer-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.dsm-timer-btn {
    padding: 0.75rem 1.5rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dsm-timer-btn:hover {
    background: #555;
}

.dsm-timer-btn.dsm-stop-alarm {
    background: #d32f2f;
}

.dsm-timer-btn.dsm-stop-alarm:hover {
    background: #b71c1c;
}

.dsm-timer-btn.dsm-finished-early {
    background: #4caf50;
}

.dsm-timer-btn.dsm-finished-early:hover {
    background: #45a049;
}

/* Log Section */
.dsm-log-section {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.dsm-log-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.dsm-auto-save-option {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.dsm-auto-save-option label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.dsm-auto-save-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.dsm-auto-save-countdown {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    color: #856404;
}

.dsm-cancel-auto-save {
    padding: 0.25rem 0.75rem;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.dsm-cancel-auto-save:hover {
    background: #c82333;
}

.dsm-photo-upload {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dsm-photo-field {
    flex: 1;
}

.dsm-photo-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.dsm-photo-field input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.dsm-photo-preview {
    margin-top: 0.5rem;
    min-height: 50px;
}

.dsm-photo-preview img {
    max-width: 100%;
    border-radius: 4px;
    border: 2px solid #ddd;
}

#dsm-notes {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-family: inherit;
    font-size: 1rem;
}

.dsm-log-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dsm-log-btn {
    padding: 0.75rem 2rem;
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dsm-log-btn:hover {
    background: #45a049;
}

.dsm-log-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.dsm-share-btn {
    padding: 0.75rem 2rem;
    background: #2196f3;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dsm-share-btn:hover {
    background: #1976d2;
}

/* History Section */
.dsm-history-section {
    margin-top: 3rem;
}

.dsm-history-toggle {
    padding: 0.75rem 1.5rem;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dsm-history-toggle:hover {
    background: #e0e0e0;
}

.dsm-history-list {
    margin-top: 1rem;
}

.dsm-history-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dsm-history-item {
    padding: 1rem;
    background: #f9f9f9;
    border-left: 4px solid #333;
    border-radius: 4px;
}

.dsm-history-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.dsm-history-detail {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.dsm-history-method {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.dsm-history-photos {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.dsm-history-photo-wrapper {
    flex: 1;
    max-width: 200px;
}

.dsm-photo-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.25rem;
}

.dsm-history-photo-wrapper img {
    width: 100%;
    border-radius: 4px;
    border: 2px solid #ddd;
}

.dsm-history-notes {
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #ddd;
}

.dsm-no-history {
    text-align: center;
    padding: 2rem;
    color: #999;
}

/* Responsive */
@media (max-width: 600px) {
    .dsm-slot-machine {
        flex-direction: column;
    }
    
    .dsm-wheel {
        min-height: 80px;
    }
    
    .dsm-mode-selector {
        flex-direction: column;
    }
    
    .dsm-timer-display {
        font-size: 2.5rem;
    }
    
    .dsm-photo-upload {
        flex-direction: column;
    }
    
    .dsm-history-photos {
        flex-direction: column;
    }
    
    .dsm-history-photo-wrapper {
        max-width: 100%;
    }
}
