/* Professional Color Analysis Studio Styling */

/* Image Options Styling */
.image-options-group {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(45, 55, 72, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.image-option-btn {
    padding: 12px 20px;
    border: 2px solid rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.image-option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.8);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
}

.image-option-btn:active {
    transform: translateY(0);
}

/* Specific button colors */
.reset-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    font-size: 16px;
    padding: 15px;
}

.reset-btn:hover {
    background: linear-gradient(135deg, #7c8ff0, #8a5ab8);
}

.red-btn {
    border-color: rgba(239, 68, 68, 0.6);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
}

.red-btn:hover {
    border-color: rgba(239, 68, 68, 0.9);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.2));
}

.green-btn {
    border-color: rgba(34, 197, 94, 0.6);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.1));
}

.green-btn:hover {
    border-color: rgba(34, 197, 94, 0.9);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(22, 163, 74, 0.2));
}

.blue-btn {
    border-color: rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
}

.blue-btn:hover {
    border-color: rgba(59, 130, 246, 0.9);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.2));
}

.inverse-btn, .gray-btn {
    border-color: rgba(156, 163, 175, 0.6);
}

.lsb-btn, .forensic-btn, .bitplane-btn {
    border-color: rgba(245, 158, 11, 0.6);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.1));
}

.lsb-btn:hover, .forensic-btn:hover, .bitplane-btn:hover {
    border-color: rgba(245, 158, 11, 0.9);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.2));
}

.info-btn {
    border-color: rgba(14, 165, 233, 0.6);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(2, 132, 199, 0.1));
}

.info-btn:hover {
    border-color: rgba(14, 165, 233, 0.9);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(2, 132, 199, 0.2));
}

.advanced-btn {
    border-color: rgba(168, 85, 247, 0.6);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(147, 51, 234, 0.1));
}

.advanced-btn:hover {
    border-color: rgba(168, 85, 247, 0.9);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(147, 51, 234, 0.2));
}

/* Modal Styling */
.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    margin: 3% auto;
    padding: 30px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: slideDown 0.3s ease;
}

.close-modal {
    color: #a0aec0;
    float: right;
    font-size: 32px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: #667eea;
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Bit Plane Grid */
#bitPlanesGrid .bitplane-item {
    background: rgba(45, 55, 72, 0.6);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

#bitPlanesGrid .bitplane-item:hover {
    border-color: rgba(102, 126, 234, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

#bitPlanesGrid .bitplane-item h4 {
    margin: 0 0 10px 0;
    color: #667eea;
    font-size: 16px;
}

#bitPlanesGrid .bitplane-item img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* RGBA Display */
.rgba-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.rgba-channel {
    background: rgba(45, 55, 72, 0.6);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    text-align: center;
}

.rgba-channel .value {
    font-size: 32px;
    font-weight: bold;
    margin: 10px 0;
}

.rgba-channel.red { border-color: rgba(239, 68, 68, 0.6); }
.rgba-channel.green { border-color: rgba(34, 197, 94, 0.6); }
.rgba-channel.blue { border-color: rgba(59, 130, 246, 0.6); }
.rgba-channel.alpha { border-color: rgba(156, 163, 175, 0.6); }

/* PNG Info Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.info-table th,
.info-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.info-table th {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    font-weight: 600;
}

.info-table tr:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* Strings List */
.strings-list {
    max-height: 500px;
    overflow-y: auto;
    background: rgba(45, 55, 72, 0.4);
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.strings-list div {
    padding: 5px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.strings-list div:hover {
    background: rgba(102, 126, 234, 0.2);
    cursor: pointer;
}

/* Professional Select/Dropdown Styling */
select, 
input[type="select"], 
.form-control-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.9), rgba(30, 41, 59, 0.9));
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 10px;
    padding: 12px 40px 12px 15px;
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-image: 
        linear-gradient(45deg, transparent 50%, rgba(102, 126, 234, 0.8) 50%),
        linear-gradient(135deg, rgba(102, 126, 234, 0.8) 50%, transparent 50%);
    background-position: 
        calc(100% - 20px) calc(1em + 2px),
        calc(100% - 15px) calc(1em + 2px);
    background-size: 
        5px 5px,
        5px 5px;
    background-repeat: no-repeat;
}

select:hover,
input[type="select"]:hover,
.form-control-select:hover {
    border-color: rgba(102, 126, 234, 0.8);
    background: linear-gradient(135deg, rgba(45, 55, 72, 1), rgba(30, 41, 59, 1));
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

select:focus,
input[type="select"]:focus,
.form-control-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

select option {
    background: #1a202c;
    color: #e2e8f0;
    padding: 10px;
}

select option:hover {
    background: #667eea;
}

/* Number inputs styling */
input[type="number"] {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.9), rgba(30, 41, 59, 0.9));
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 8px;
    padding: 10px 15px;
    color: #e2e8f0;
    font-size: 15px;
    transition: all 0.3s ease;
}

input[type="number"]:hover {
    border-color: rgba(102, 126, 234, 0.8);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

