/* 
 * Hash ID Tool Styles
 * Tool-specific styles only - common calculator styles are in global.css
 */

/* Custom styles specific to hash tool */
.mqttOptions {
    background-color: var(--color-primary-light);
    border-radius: var(--border-radius-md);
    padding: var(--space-md);
    margin-top: var(--space-md);
    border-left: 4px solid var(--color-primary);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: var(--space-xs);
    min-height: 18px; /* Ensure checkboxes are touch-friendly */
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    display: inline;
    margin-bottom: 0;
}

/* Custom result displays for hash outputs */
.hash-result, .mqtt-topic {
    font-family: monospace;
    padding: var(--space-md);
    background-color: var(--color-background);
    border-radius: var(--border-radius-md);
    word-break: break-all;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
    margin-top: 0; /* No space between header and result */
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    width: 100%; /* Ensure full width */
    display: block; /* Force block display */
    clear: both; /* Clear any floats */
    box-sizing: border-box; /* Include padding in width calculation */
}

.hash-result.error {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background-color: rgba(231, 76, 60, 0.1);
}

/* Positioning for the result item and header */
/* Removed for global styling compatibility:
/* /* Removed for global styling compatibility:
/* Removed for global styling compatibility:/* Removed for global styling compatibility:

/* Removed for global styling compatibility:
/* Removed for global styling compatibility:/* Removed for global styling compatibility:

.result-item {
    position: relative;
    padding-top: 0;
    margin-bottom: var(--space-md); /* Spacing between result items */
    display: block; /* Ensure block display */
    clear: both; /* Clear any floats */
    width: 100%; /* Full width */
}
*/
*/
*/
*/
*/
*/ */

.results-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Changed from space-between to flex-start to align labels to left */
    background-color: var(--color-primary-light);
    padding: var(--space-sm) var(--space-md);
    border-top-left-radius: var(--border-radius-md);
    border-top-right-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    border-bottom: none;
}

.results-header h2 {
    margin: 0;
    font-size: var(--font-size-md);
    color: var(--color-primary-dark);
    width: auto; /* Changed from calc(100% - 60px) to auto */
    text-align: left; /* Explicitly set text alignment to left */
    padding-right: 80px; /* Add padding to prevent overlap with the button */
}

/* Positioning for the copy button */
.copy-button.top-right {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    padding: 6px 10px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: absolute;
    right: var(--space-sm);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    margin-left: auto; /* Pushes button to the right */
}

.copy-button.top-right svg {
    transition: transform 0.2s ease;
}

.copy-button.top-right:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.copy-button.top-right:hover svg {
    transform: scale(1.1);
}

.copy-button.top-right:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* MQTT specific styles */
.mqttOptions {
    background-color: var(--color-primary-light);
    border-radius: var(--border-radius-md);
    padding: var(--space-md);
    margin-top: var(--space-md);
    border-left: 4px solid var(--color-primary);
    display: none; /* Hidden by default */
}

.mqttOptions.visible {
    display: block;
}

.mqtt-result {
    display: none; /* Hidden by default */
    margin-top: var(--space-md);
}

.mqtt-result.visible {
    display: block;
}

/* Hidden class for toggling visibility */
.hidden {
    display: none !important;
}

/* Button states */
.copy-button.copied {
    background-color: #27ae60; /* Success color */
}

input[type="text"].valid-input {
    border-color: #27ae60;
    box-shadow: 0 0 0 1px rgba(39, 174, 96, 0.2);
}

/* Dark theme adjustments specific to hash tool */
body.dark-theme .hash-result.error {
    background-color: rgba(231, 76, 60, 0.2);
}

body.dark-theme input[type="text"].valid-input {
    border-color: #27ae60;
    box-shadow: 0 0 0 1px rgba(39, 174, 96, 0.3);
}

body.dark-theme .copy-button.top-right {
    background-color: #3498db; /* Bright blue that stands out in dark theme */
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Add shadow for better visibility */
}

body.dark-theme .copy-button.top-right:hover {
    background-color: #2980b9; /* Darker blue for hover state */
    transform: translateY(-1px); /* Subtle lift effect on hover */
}

body.dark-theme .copy-button.copied {
    background-color: #2ecc71; /* Brighter success color for dark theme */
}

/* Small devices adjustments specific to hash tool */
@media (max-width: var(--breakpoint-md)) {
    .mqttOptions {
        padding: var(--space-sm);
    }
    
    .hash-result, .mqtt-topic {
        padding: var(--space-sm);
        font-size: 0.8rem;
    }
    
    /* Adjust copy button for mobile */
    .copy-button.top-right {
        padding: 4px 8px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
    
    .copy-button.top-right span {
        display: none; /* Hide the text on mobile, show only icon */
    }
    
    .copy-button.top-right svg {
        width: 14px;
        height: 14px;
        margin: 0; /* Center the icon */
    }
      .results-header h2 {
        font-size: var(--font-size-md);
    }
}

/* Output section styling for better readability */
.output-section h2.main-title {
    margin-bottom: var(--space-md);
    color: var(--color-text);
    font-weight: 700;
    font-size: var(--font-size-xl);
    border-bottom: 2px solid var(--color-border-light);
    padding-bottom: var(--space-xs);
    display: block;
    width: 100%;
}

/* Results header styling */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--color-primary-light);
    margin-bottom: 0;
    padding-bottom: var(--space-xs);
    position: relative; /* For proper z-index stacking */
    z-index: 2; /* Ensure header is above content */
    width: 100%; /* Full width to prevent items aligning side by side */
}

.results-header h2 {
    margin: 0;
    padding: 0;
    color: var(--color-primary);
    font-weight: 600;
    font-size: calc(var(--font-size-lg) - 2px);
    margin-right: 60px; /* Make room for the button */
}

.results-header .copy-button.top-right {
    position: absolute;
    right: 0;
    top: 0;
}

/* Specific styles for the hash and MQTT section headers */
.hash-section-header, .mqtt-section-header {
    margin-bottom: 0;
    border-bottom-width: 1px;
    display: flex;
    width: 100%;
    position: relative;
    padding-right: 60px; /* Make space for absolute-positioned button */
}

/* Removed for global styling compatibility:
/* /* Removed for global styling compatibility:
/* Removed for global styling compatibility:
body.dark-theme .results-header h2,
body.dark-theme .hash-section-header h2,
body.dark-theme .mqtt-section-header h2 {
    color: #3498db; /* Match button color in dark theme */
}
*/
*/ */



