* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background: #f5f7fa;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

.generator-panel {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-weight: 500;
}

input[type="range"] {
    width: 100%;
    margin: 10px 0;
}

input[type="checkbox"] {
    margin-right: 10px;
}

#length-value {
    display: inline-block;
    width: 30px;
    text-align: center;
    margin-left: 10px;
    font-weight: bold;
}

.generate-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
    transition: background 0.3s;
}

.generate-btn:hover {
    background: #2980b9;
}

.result-container {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.result-item {
    display: flex;
    margin-bottom: 15px;
}

#generated-password {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: monospace;
}

.copy-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: #219653;
}

.password-strength {
    margin-top: 15px;
}

.strength-meter {
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    margin-bottom: 5px;
    overflow: hidden;
}

.strength-meter::after {
    content: '';
    display: block;
    height: 100%;
    width: 50%;
    background: #f1c40f;
    border-radius: 5px;
}

.history-container {
    margin-top: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.history-container h3 {
    margin-top: 0;
    color: #2c3e50;
}

#history-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

#history-list li {
    padding: 8px;
    border-bottom: 1px solid #eee;
    font-family: monospace;
    display: flex;
    justify-content: space-between;
}

.clear-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.clear-btn:hover {
    background: #c0392b;
}

.footer-container {
    width: 100%;
    margin-top: auto;
}

.footer-container object {
    display: block;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    border: none;
    overflow: hidden;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .generator-panel {
        padding: 15px;
    }
}