:root {
    --primary-color: #43dde6;
    --text-color: #f0f0f0;
    --card-bg: #1f1f2f;
    --background-color: #121212;
    --accent-color: #43dde6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-image: 
        linear-gradient(rgba(25, 25, 35, 0.9) 1px, transparent 1px),
        linear-gradient(90deg, rgba(25, 25, 35, 0.9) 1px, transparent 1px);
    background-size: 20px 20px;
}

.container {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 25px;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(67, 221, 230, 0.3);
}

h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(67, 221, 230, 0.5);
}

.password-container {
    position: relative;
    background-color: rgba(20, 20, 30, 0.9);
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(67, 221, 230, 0.3);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border: 2px solid var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(67, 221, 230, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(67, 221, 230, 0); }
    100% { box-shadow: 0 0 0 0 rgba(67, 221, 230, 0); }
}

#password-display {
    font-size: 22px;
    color: var(--primary-color);
    font-weight: bold;
    flex-grow: 1;
    overflow-x: auto;
    white-space: nowrap;
    padding-right: 15px;
    height: 30px;
    display: flex;
    align-items: center;
    letter-spacing: 2px;
    text-shadow: 0 0 5px rgba(67, 221, 230, 0.5);
}

#copy-btn {
    background-color: var(--primary-color);
    color: #121212;
    border: none;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#copy-btn:hover {
    background-color: #2ab7c0;
    transform: scale(1.05);
}

#copy-btn i {
    font-size: 18px;
}

#copy-status {
    color: var(--primary-color);
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    height: 25px;
    margin-bottom: 20px;
}

#copy-status.show {
    opacity: 1;
}

.history-container {
    background-color: rgba(20, 20, 30, 0.7);
    border-radius: 6px;
    padding: 15px;
    border: 1px solid rgba(67, 221, 230, 0.2);
}

.history-container h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 16px;
}

#password-history {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 150px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: rgba(25, 25, 35, 0.8);
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
}

.history-password {
    font-weight: bold;
    color: #cccccc;
}

.copy-history-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(20, 20, 30, 0.7);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

@media (max-width: 500px) {
    #password-display {
        font-size: 16px;
    }
}
.history-container h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

#password-history {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 150px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: white;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
}

.history-password {
    font-family: monospace;
    font-weight: bold;
}

.copy-history-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

@media (max-width: 500px) {
    .options {
        grid-template-columns: 1fr;
    }
    
    #password-display {
        font-size: 18px;
    }
}
