* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

header h1 i {
    color: #ffd700;
}

main {
    padding: 0;
}

.tool-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
}

.tool-section:first-of-type {
    margin-bottom: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.tool-section h2 {
    color: #2d3748;
    font-size: 1.8rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-section h2 i {
    color: #667eea;
}

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

.input-section label, .output-section label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 600;
}

textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

textarea[readonly] {
    background-color: #f7fafc;
}

.controls {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.operation-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    white-space: nowrap;
}

.operation-label {
    font-weight: 600;
    color: #495057;
    text-align: left;
    flex-shrink: 0;
}

.btn {
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0.25rem;
    text-decoration: none;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-hash {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    margin: 8px;
}

.btn-copy {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    margin-top: 10px;
}

.btn-copy-small {
    padding: 8px 12px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    font-size: 12px;
    min-width: auto;
}

.output-section {
    position: relative;
}

.output-container {
    position: relative;
}

.btn-copy-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    font-size: 12px;
    min-width: auto;
    border-radius: 4px;
    z-index: 10;
}

.hash-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
}

.hash-results {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.hash-result {
    margin-bottom: 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hash-result label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    min-width: 80px;
    margin: 0;
}

.hash-result input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: white;
    margin: 0;
}

.hash-result input:focus {
    outline: none;
    border-color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    main {
        padding: 20px;
    }

    .tool-section {
        padding: 20px;
        margin-bottom: 30px;
    }

    header h1 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }    .controls {
        flex-direction: column;
        gap: 10px;
    }

    .hash-results {
        grid-template-columns: 1fr;
    }

    .operation-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .operation-label {
        width: 100%;
    }
}