/* tools/hash/css/style.css */

/* Tool Specific Variables */
/* None needed currently */

body.theme-light.in-iframe {
    background-color: var(--color-white) !important;
}

/* Tool Container */
.tool-container {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* =========================================
   Input Section
   ========================================= */
.input-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.label-main {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-text);
}

/* Cyan Border Input as per user design */
.cyber-textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--color-accent-secondary);
    /* Cyan border */
    border-radius: var(--radius-md);
    color: var(--color-text);
    padding: var(--spacing-md);
    font-family: inherit;
    resize: vertical;
    outline: none;
    min-height: 50px;
    /* Slimmer default */
    box-shadow: 0 0 10px rgba(var(--color-accent-secondary-rgb), 0.1);
    transition: all var(--transition-fast);
}

.cyber-textarea:focus {
    box-shadow: 0 0 15px rgba(var(--color-accent-secondary-rgb), 0.3);
    min-height: 100px;
}

/* .btn-reset is removed to use common styles from tools-common.css */

/* =========================================
   Unified Results Container (List in Card)
   ========================================= */
.results-container-card {
    /* Large Container Card */
    width: 100%;
    /* FORCE FULL WIDTH */
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: var(--card-shadow);
    /* Changed to var(--card-shadow) for consistency, although generic shadow-lg is fine */
    box-sizing: border-box;
}

/* Row Style */
.hash-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    position: relative;
    /* Apply row background if needed, using tool specific var */
    /* background: var(--row-bg); -> Optional, currently transparent in design but var exists */
}

/* Label */
.hash-label {
    width: 100px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-accent-secondary);
    letter-spacing: 0.05em;
    text-align: left;
}

/* Input Field */
.hash-input {
    flex: 1;
    width: 0;
    min-width: 0;
    height: 44px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    padding: 0 1rem;
    color: var(--color-text);
    font-family: 'Roboto Mono', 'Consolas', monospace;
    font-size: 1rem;
    letter-spacing: 0.05em;
    outline: none;
    transition: all var(--transition-fast);
}

.hash-input:focus {
    border-color: var(--color-accent-secondary);
    box-shadow: 0 0 8px rgba(var(--color-accent-secondary-rgb), 0.25);
}

/* Copy Button */
.btn-icon-only {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    line-height: 1 !important;
    background: rgba(var(--color-black-rgb), 0.6);
    border: 1px solid var(--color-accent-secondary);
    color: var(--color-accent-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.btn-icon-only:hover {
    background: var(--color-accent-secondary);
    color: var(--color-bg);
    box-shadow: 0 0 12px rgba(var(--color-accent-secondary-rgb), 0.6);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .tool-container {
        padding: 1rem;
    }

    .results-container-card {
        padding: 1.5rem;
    }

    .hash-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .hash-label {
        width: 100%;
        margin-bottom: 0.2rem;
    }

    .hash-input {
        width: auto;
        padding-right: 50px;
        border-radius: 8px 0 0 8px;
    }

    .btn-icon-only {
        position: absolute;
        right: 0;
        bottom: 0;
        border-radius: 0 8px 8px 0;
        width: 44px;
        height: 44px;
        border-left: none;
    }
}