* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.container {
    width: 90%;
    max-width: 600px;
    padding: 1rem;
}

.menu-select {
    margin-bottom: 1rem;
}

.menu-select select {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.menu-select select:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.menu-select select:focus {
    outline: none;
    border-color: #667eea;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

h1 {
    color: #2d3748;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.password-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

label {
    color: #4a5568;
    font-weight: 500;
}

input[type="number"] {
    padding: 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    width: 80px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #667eea;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
}

.username-container {
    margin-top: 2rem;
    max-height: 500px;
    overflow-y: auto;
}

.username-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-right: 10px;
}

/* Add custom scrollbar styling */
.username-container::-webkit-scrollbar {
    width: 8px;
}

.username-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.username-container::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

.username-container::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.8);
}

.password-container {
    margin-top: 2rem;
}

.username-list,
.password-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.username-item,
.password-item {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
    border: 1px solid #e2e8f0;
}

.username-item button,
.password-item button {
    background: transparent;
    color: #4a5568;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.username-item button:hover,
.password-item button:hover {
    color: #667eea;
    transform: none;
    box-shadow: none;
}

.secret-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.secret-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.secret-item {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
    border: 1px solid #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.secret-item button {
    background: transparent;
    color: #4a5568;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.secret-item button:hover {
    color: #667eea;
    transform: none;
    box-shadow: none;
}

.qr-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.qr-options input[type="text"] {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.qr-options input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

.color-group {
    display: flex;
    gap: 1rem;
}

.color-group .input-group {
    flex: 1;
}

input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 0;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#qrOutput {
    min-height: 256px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-options,
.storage-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.full-width {
    width: 100%;
}

select {
    padding: 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 200px;
    background-color: white;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #667eea;
}

textarea {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

.storage-buttons {
    display: flex;
    gap: 1rem;
}

.storage-list {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.storage-list h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.storage-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.storage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f7fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.storage-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.storage-item-key {
    font-weight: 600;
    color: #2d3748;
}

.storage-item-value {
    font-size: 0.9rem;
    color: #4a5568;
    word-break: break-all;
}

.storage-item-actions {
    display: flex;
    gap: 0.5rem;
}

.storage-item button {
    padding: 0.5rem;
    font-size: 0.9rem;
}

/* Make text inputs consistent with number inputs */
input[type="text"] {
    padding: 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 200px;
    transition: border-color 0.2s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

/* Update tabs to be more responsive */
@media (max-width: 600px) {
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bat-options,
.cmd-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.bat-options textarea,
.cmd-options textarea {
    font-family: 'Consolas', 'Courier New', monospace;
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1rem;
    font-size: 14px;
    line-height: 1.5;
}

.creative-password-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.creative-password-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.creative-password-item {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
    border: 1px solid #e2e8f0;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 1.1rem;
    word-break: break-all;
}

.creative-password-item button {
    background: transparent;
    color: #4a5568;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.creative-password-item button:hover {
    color: #667eea;
    transform: none;
    box-shadow: none;
}