/* Base64 Encoder/Decoder - DozeGear - CSS */

.dg-base64-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
}

.dg-base64-tool {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.dg-base64-title {
    text-align: center;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}

.dg-base64-subtitle {
    text-align: center;
    color: #7f8c8d;
    margin: 0 0 30px 0;
    font-size: 16px;
    line-height: 1.5;
}

.dg-base64-input-section,
.dg-base64-output-section {
    margin-bottom: 25px;
}

.dg-base64-input-section label,
.dg-base64-output-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
    font-size: 15px;
}

.dg-base64-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: "Monaco", "Menlo", "Ubuntu Mono", "Consolas", monospace;
    font-size: 14px;
    line-height: 1.5;
    background-color: #fafafa;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    resize: vertical;
    min-height: 120px;
}

.dg-base64-textarea:focus {
    outline: none;
    border-color: #3498db;
    background-color: #ffffff;
}

.dg-base64-textarea[readonly] {
    background-color: #f8f9fa;
    color: #2c3e50;
}

.dg-base64-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.dg-base64-output-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dg-base64-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    flex: 1;
    max-width: 100%;
}

.dg-base64-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dg-base64-btn:active {
    transform: translateY(0);
}

.dg-base64-btn:focus {
    outline: 2px solid rgba(52, 152, 219, 0.4);
    outline-offset: 2px;
}

.dg-base64-btn-encode {
    background-color: #27ae60;
    color: white;
}

.dg-base64-btn-encode:hover {
    background-color: #219955;
}

.dg-base64-btn-decode {
    background-color: #3498db;
    color: white;
}

.dg-base64-btn-decode:hover {
    background-color: #2980b9;
}

.dg-base64-btn-clear {
    background-color: #95a5a6;
    color: white;
}

.dg-base64-btn-clear:hover {
    background-color: #7f8c8d;
}

.dg-base64-btn-copy {
    background-color: #9b59b6;
    color: white;
    max-width: 200px;
}

.dg-base64-btn-copy:hover {
    background-color: #8e44ad;
}

.dg-base64-error {
    margin-top: 20px;
    padding: 16px;
    background-color: #fee;
    border-left: 4px solid #e74c3c;
    border-radius: 4px;
    color: #c0392b;
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dg-base64-container {
        padding: 15px;
    }
    
    .dg-base64-tool {
        padding: 20px;
    }
    
    .dg-base64-title {
        font-size: 24px;
    }
    
    .dg-base64-subtitle {
        font-size: 14px;
    }
    
    .dg-base64-buttons {
        flex-direction: column;
    }
    
    .dg-base64-btn {
        width: 100%;
        max-width: 100%;
    }
    
    .dg-base64-output-buttons .dg-base64-btn {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .dg-base64-container {
        padding: 10px;
    }
    
    .dg-base64-tool {
        padding: 15px;
    }
    
    .dg-base64-title {
        font-size: 22px;
    }
    
    .dg-base64-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}