:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
}

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #0d6efd 100%);
    padding: 1.5rem;
}

.card-header h1 {
    margin: 0;
    font-size: 1.8rem;
}

.password-list {
    overflow-y: scroll;
    overflow-x: unset;
    max-height: 470px;
    scrollbar-width: thin;
    box-shadow: 0px 0px 20px -10px #0d6efd inset;
    padding: .5rem 2px 0 2px;
    border-radius: 5px;
}

.password-item {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.password-item:hover {
    background-color: #e9ecef !important;
    box-shadow: 0 4px 12px #00000026;
}

.password-item::after {
    content: 'Нажмите, чтобы скопировать';
    position: absolute;
    top: -2px;
    right: 15px;
    font-size: 0.7rem;
    color: #6c757d;
    opacity: 0;
    transition: opacity 0.3s;
}

.password-item:hover::after {
    opacity: 1;
}

.password-text {
    font-size: 1.1rem;
    letter-spacing: 1px;
    user-select: all;
}

.copy-btn {
    transition: all 0.2s ease;
    opacity: 0.7;
}

.copy-btn:hover {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 2px 4px #00000033;
}

.password-item:hover .copy-btn {
    opacity: 1;
}

.form-check-label {
    cursor: pointer;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

footer {
    margin-top: auto;
}

.material-icons {
    vertical-align: middle;
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .password-text {
        font-size: 0.9rem;
    }
    
    .password-item {
        padding: 1rem !important;
    }
    
    .card-header h1 {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .d-md-flex {
        flex-direction: column;
    }
}

/* Custom checkbox styling */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Loading spinner color */
.spinner-border {
    color: var(--primary-color);
}

/* Toast notifications */
#toastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.alert {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    min-width: 280px;
}

/* Download button */
#downloadBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Copy all button */
#copyAllBtn {
    transition: all 0.2s ease;
}

#copyAllBtn:hover {
    transform: translateY(-2px);
}

/* Form text */
.form-text {
    font-size: 0.85rem;
    color: #6c757d;
}