/**
 * LSB Encoder Tool - Styles
 * Matrix-themed steganography encoder
 * Location: assets/css/lsb-encoder.css
 */

/* Tool Workspace Layout */
.tool-workspace {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 968px) {
    .tool-workspace {
        grid-template-columns: 1fr;
    }
}

/* Control Panel */
.control-panel {
    background: rgba(0, 20, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.control-panel h2 {
    color: #00ff00;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* Input Groups */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.label-text {
    display: block;
    color: #00ff00;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.label-hint {
    display: block;
    color: #00cc00;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* File Input */
.file-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #00ff00;
    border-radius: 4px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input::-webkit-file-upload-button {
    padding: 0.5rem 1rem;
    background: #00ff00;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 1rem;
}

.file-input::-webkit-file-upload-button:hover {
    background: #00cc00;
}

.file-input:hover {
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

/* Image Info */
.image-info {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 255, 0, 0.1);
    border-left: 3px solid #00ff00;
    color: #00ff00;
    font-size: 0.9rem;
    line-height: 1.6;
}

.image-info.hidden {
    display: none;
}

/* Message Input */
.message-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #00ff00;
    border-radius: 4px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
}

.message-input:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.message-input::placeholder {
    color: rgba(0, 255, 0, 0.4);
}

/* Character Count */
.character-count {
    margin-top: 0.5rem;
    text-align: right;
    color: #00ff00;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

.character-count.over-capacity {
    color: #ff3333;
    font-weight: bold;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Channel Select */
.channel-select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #00ff00;
    border-radius: 4px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.channel-select:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.channel-select option {
    background: #001a00;
    color: #00ff00;
    padding: 0.5rem;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.primary-btn,
.secondary-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid #00ff00;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.primary-btn {
    background: #00ff00;
    color: #000;
}

.primary-btn:hover:not(:disabled) {
    background: #00cc00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.secondary-btn {
    background: rgba(0, 0, 0, 0.6);
    color: #00ff00;
}

.secondary-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Status Message */
.status-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    text-align: center;
}

.status-message.hidden {
    display: none;
}

.status-message.info {
    background: rgba(0, 150, 255, 0.2);
    border: 2px solid #0096ff;
    color: #0096ff;
}

.status-message.success {
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid #00ff00;
    color: #00ff00;
}

.status-message.error {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff3333;
    color: #ff3333;
}

/* Preview Panel */
.preview-panel {
    background: rgba(0, 20, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.preview-panel h2 {
    color: #00ff00;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* Preview Container */
.preview-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .preview-container {
        flex-direction: column;
    }
    
    .preview-separator {
        transform: rotate(90deg);
    }
}

.preview-wrapper {
    flex: 1;
    text-align: center;
}

.preview-wrapper h3 {
    color: #00ff00;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.preview-canvas {
    max-width: 100%;
    height: auto;
    border: 2px solid #00ff00;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.preview-label {
    margin-top: 0.5rem;
    color: #00cc00;
    font-size: 0.85rem;
}

.preview-separator {
    color: #00ff00;
    font-size: 2rem;
    font-weight: bold;
}

/* Download Section */
.download-section {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.download-section.hidden {
    display: none;
}

.download-section h3 {
    color: #00ff00;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.download-section p {
    color: #00cc00;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.download-btn {
    padding: 1rem 2rem;
    background: #00ff00;
    color: #000;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.download-btn:hover {
    background: #00cc00;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.6);
    transform: scale(1.05);
}

.download-hint {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #00cc00;
}

.download-hint a {
    color: #00ff00;
    text-decoration: underline;
}

.download-hint a:hover {
    color: #00ffff;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-card {
    background: rgba(0, 20, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
    transform: translateY(-5px);
}

.info-card h3 {
    color: #00ff00;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.info-card p {
    color: #00cc00;
    line-height: 1.6;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.step {
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: #00ff00;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.step h3 {
    color: #00ff00;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: #00cc00;
    line-height: 1.6;
}

/* Tips List */
.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
    color: #00cc00;
    line-height: 1.6;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list strong {
    color: #00ff00;
}

.tips-list a {
    color: #00ff00;
    text-decoration: underline;
}

.tips-list a:hover {
    color: #00ffff;
}

/* Tool Grid - Related Tools */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tool-card-link {
    text-decoration: none;
}

.tool-card {
    background: rgba(0, 20, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.tool-card:hover {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transform: translateY(-5px);
    border-color: #00ffff;
}

.tool-card h3 {
    color: #00ff00;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: #00cc00;
    line-height: 1.6;
}