/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1rem;
    color: #ffffff;
    opacity: 0.7;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex: 1;
    min-width: 120px;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.2), rgba(0, 255, 170, 0.2));
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 170, 255, 0.3);
    font-weight: 600;
}

.tool-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 800px;
    backdrop-filter: blur(10px);
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    opacity: 0.8;
    font-size: 0.9rem;
}

.textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    resize: vertical;
    transition: all 0.3s ease;
}

.textarea:focus {
    outline: none;
    border-color: #00aaff;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
}

.hash-types {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.hash-btn {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.2), rgba(0, 255, 170, 0.2)) !important;
    border: 2px solid rgba(0, 170, 255, 0.4) !important;
    color: #ffffff !important;
    padding: 14px 28px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 170, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    min-width: 100px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.hash-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.hash-btn:hover::before {
    left: 100%;
}

.hash-btn:hover {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.35), rgba(0, 255, 170, 0.35)) !important;
    border-color: rgba(0, 170, 255, 0.7) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 170, 255, 0.5), 0 0 30px rgba(0, 170, 255, 0.3) !important;
    color: #00aaff !important;
}

.hash-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 170, 255, 0.2);
}

.hash-btn.active {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.4), rgba(0, 255, 170, 0.4)) !important;
    border-color: rgba(0, 170, 255, 0.8) !important;
    color: #00ffff !important;
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(0, 170, 255, 0.6), 0 0 40px rgba(0, 255, 170, 0.4) !important;
    font-weight: 700 !important;
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.8) !important;
}

.results {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-item label {
    color: #ffffff;
    opacity: 0.7;
    font-size: 0.85rem;
    font-weight: 500;
}

.result-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
}

.result-box code {
    flex: 1;
    color: #00aaff;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    word-break: break-all;
    line-height: 1.5;
}

.btn-copy {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.15), rgba(0, 255, 170, 0.15)) !important;
    border: 2px solid rgba(0, 170, 255, 0.3) !important;
    color: #ffffff !important;
    padding: 10px 18px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0, 170, 255, 0.2) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.btn-copy:hover {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.3), rgba(0, 255, 170, 0.3)) !important;
    border-color: rgba(0, 170, 255, 0.6) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.4) !important;
    color: #00aaff !important;
}

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

.btn-copy.copied {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.25), rgba(0, 255, 150, 0.25));
    border-color: rgba(0, 255, 0, 0.6);
    color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
    font-weight: 600;
}

.status {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.status.success {
    background: rgba(0, 255, 0, 0.15);
    border-color: rgba(0, 255, 0, 0.3);
    color: #00ff88;
}

.status.error {
    background: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.3);
    color: #ff6666;
}

.hidden {
    display: none;
}

.hash-input {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.hash-input:focus {
    outline: none;
    border-color: #00aaff;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
}

.info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.info strong {
    color: #ffffff;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .hash-types {
        justify-content: center;
        gap: 8px;
    }
    
    .hash-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
        min-width: 80px;
    }
    
    .tabs {
        flex-direction: column;
        gap: 6px;
    }
    
    .tab-btn {
        min-width: auto;
    }
    
    .result-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .btn-copy {
        width: 100%;
        text-align: center;
    }
}

