/* Styles for the Resting Modal */
:root {
    --resting-primary-font: 'Roboto Mono', monospace;
    --resting-accent-font: 'Press Start 2P', cursive;
    --resting-glow-color: #00FFDC; /* Updated from #4CAF50 */
    --resting-text-primary: #E0F0FF; /* Updated from #E8F5E9 */
    --resting-text-secondary: #A0C0E0; /* Updated from #A5D6A7 */
    --resting-timer-text: #FFA500; /* Kept #FFC107 as it's specific, or could be wallet's secondary if preferred */
}

.resting-modal {
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
    backdrop-filter: blur(5px);
}

.resting-modal.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease;
}

.resting-modal-content {
    background: linear-gradient(145deg, rgba(10, 25, 40, 0.97), rgba(20, 35, 55, 0.97)); /* Updated from green gradient */
    margin: auto;
    padding: 0;
    border: 1px solid rgba(0, 255, 220, 0.6); /* Updated from green border */
    border-radius: 15px;
    width: 90%;
    max-width: 480px; /* Slightly adjusted width if needed */
    box-shadow: 0 10px 50px rgba(0, 255, 220, 0.7), 0 0 20px rgba(0,0,0,0.4); /* Updated glow color */
    color: var(--resting-text-primary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: var(--resting-primary-font);
}

.resting-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(0, 255, 220, 0.4); /* Updated from green border */
}

.resting-modal-header h3 {
    color: var(--resting-glow-color);
    margin: 0;
    font-size: 1.7em;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(0, 255, 220, 0.8); /* Updated glow color */
}

.resting-timer {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--resting-timer-text); /* Kept existing timer color */
    background-color: rgba(0,0,0,0.4);
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid rgba(255, 165, 0, 0.5); /* Kept existing timer border color, can be changed to glow color if needed */
}

.resting-modal-close-button {
    background: none;
    border: none;
    color: var(--resting-text-secondary);
    font-size: 2.3em;
    font-weight: bold;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.resting-modal-close-button:hover {
    color: var(--resting-glow-color);
    transform: scale(1.1);
}

.resting-modal-body {
    padding: 20px 25px 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Custom scrollbar for modal body (Webkit browsers) */
.resting-modal-body::-webkit-scrollbar {
    width: 8px;
}
.resting-modal-body::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}
.resting-modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 220, 0.5); /* Updated from green */
    border-radius: 4px;
}
.resting-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 220, 0.8); /* Updated from green */
}

.resting-central-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: rgba(0,0,0,0.2);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 220, 0.2); /* Updated from green */
}

.animation-placeholder { /* Re-using from datamining for consistency, can be specialized */
    width: 100%;
    height: auto; /* Adjust for image aspect ratio */
    max-height: 180px; /* Control max image height */
    object-fit: cover; /* Ensure image covers the area, may crop */
    background-color: rgba(0,10,20,0.5); /* Kept for fallback or if image fails to load */
    border: 1px dashed rgba(0, 255, 220, 0.4); /* Updated from green */
    border-radius: 8px;
    /* Removed flex properties and text styling as it's an img now */
}

.resting-info {
    font-size: 1em;
    color: var(--resting-text-secondary);
    text-align: center;
    padding: 10px;
}

/* Styles for the duration selector */
.resting-duration-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.15); /* Subtle background consistent with wallet accents */
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 220, 0.2); /* Accent border */
}

.resting-duration-selector label {
    font-size: 0.95em;
    color: var(--resting-text-secondary);
}

.resting-duration-selector #resting-duration-value {
    font-weight: bold;
    color: var(--resting-glow-color);
}

.resting-duration-selector input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    outline: none;
    border: 1px solid rgba(0, 255, 220, 0.3);
}

/* Thumb (slider handle) for Webkit/Blink */
.resting-duration-selector input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--resting-glow-color);
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid rgba(10, 25, 40, 0.8); /* Match modal background for contrast */
    box-shadow: 0 0 5px rgba(0, 255, 220, 0.5);
    transition: background-color 0.2s ease;
}

.resting-duration-selector input[type="range"]::-webkit-slider-thumb:hover {
    background: #00E0B8; /* Slightly darker/different shade on hover */
}

/* Thumb (slider handle) for Firefox */
.resting-duration-selector input[type="range"]::-moz-range-thumb {
    width: 18px; /* Adjusted for Firefox if needed */
    height: 18px;
    background: var(--resting-glow-color);
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid rgba(10, 25, 40, 0.8);
    box-shadow: 0 0 5px rgba(0, 255, 220, 0.5);
    transition: background-color 0.2s ease;
}

.resting-duration-selector input[type="range"]::-moz-range-thumb:hover {
    background: #00E0B8;
}

.resting-action-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

/* Action button styles are assumed to be shared or can be copied from modalDatamining.css */
/* If specific resting action button styles are needed, define them here. */
/* For now, assuming .action-button class from main styles or modalDatamining.css will be used and styled appropriately there */

/* Re-using .action-button style from modalDatamining.css for consistency */
/* If not available globally, copy them here */
.action-button {
    font-family: var(--resting-accent-font);
    background-color: transparent; 
    border: 2px solid var(--resting-glow-color);
    color: var(--resting-glow-color);
    padding: 12px 20px;
    font-size: 1em;
    font-weight: normal;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    border-radius: 99px;
    letter-spacing: 0.5px;
}

.action-button:hover:not(:disabled) {
    background-color: var(--resting-glow-color);
    color: #0A1E32; /* Updated from #102010 for better contrast with new glow */
}

.action-button:disabled {
    background-color: transparent;
    color: #A0A0A0;
    border-color: #A0A0A0;
    cursor: not-allowed;
    box-shadow: none;
}


.status-message { /* Re-using from datamining for consistency */
    font-size: 0.9em;
    color: var(--resting-text-secondary);
    background-color: rgba(0,0,0,0.2);
    padding: 8px 12px;
    border-radius: 6px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    border: 1px solid rgba(0, 255, 220, 0.1); /* Updated from green */
    min-height: 30px; /* Ensure space for message */
}

/* Responsive adjustments */
@media (max-width: 520px) {
    .resting-modal-content {
        max-width: 95%;
        margin: 15px auto;
    }
    .resting-modal-header h3 {
        font-size: 1.4em;
    }
    .resting-timer {
        font-size: 0.8em;
        padding: 4px 8px;
    }
    .resting-modal-body {
        padding: 15px;
        gap: 15px;
    }
    .animation-placeholder {
        height: 100px;
    }
    .action-button {
        padding: 10px 20px;
        font-size: 1em;
    }
} 