:root {
    --primary-color: #4CAF50;
    --primary-hover: #45a049;
    --secondary-color: #2196F3;
    --secondary-hover: #1976D2;
    --background-color: #f5f5f5;
    --container-bg: white;
    --text-color: #333;
    --border-color: #e0e0e0;
    --hash-bg: #f8f9fa;
    --toast-bg: #333;
    --toast-color: white;
}

[data-theme="dark"] {
    --primary-color: #66bb6a;
    --primary-hover: #81c784;
    --secondary-color: #42a5f5;
    --secondary-hover: #64b5f6;
    --background-color: #1a1a1a;
    --container-bg: #2d2d2d;
    --text-color: #ffffff;
    --border-color: #404040;
    --hash-bg: #363636;
    --toast-bg: #ffffff;
    --toast-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

.container {
    background-color: var(--container-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    transition: background-color 0.3s ease;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

h1 {
    text-align: center;
    color: var(--text-color);
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    margin-left: auto;
    z-index: 1;
}

.theme-toggle:hover {
    background-color: var(--hash-bg);
}

.input-section {
    margin-bottom: 2rem;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.input-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.action-btn:hover {
    background-color: var(--hash-bg);
}

textarea {
    width: 100%;
    height: 150px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    background-color: var(--container-bg);
    color: var(--text-color);
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.primary-btn:hover {
    background-color: var(--primary-hover);
}

.results-section {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hash-result {
    background-color: var(--hash-bg);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.hash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.hash-header h3 {
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hash-actions {
    display: flex;
    gap: 0.5rem;
}

.hash-box {
    background-color: var(--container-bg);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    word-break: break-all;
    margin-bottom: 0.5rem;
    min-height: 50px;
    font-family: monospace;
    transition: background-color 0.3s ease;
}

.copy-btn, .verify-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.copy-btn:hover, .verify-btn:hover {
    background-color: var(--secondary-hover);
}

.history-section {
    background-color: var(--hash-bg);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.history-section h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hash-history {
    display: grid;
    gap: 1rem;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--toast-bg);
    color: var(--toast-color);
    padding: 1rem 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: none;
    z-index: 1000;
}

.powered-by {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

.powered-by a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.powered-by a:hover {
    opacity: 0.8;
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    .hash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .hash-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .input-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .primary-btn {
        width: 100%;
        justify-content: center;
    }
} 