* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    min-height: 100vh;
    color: #333;
}

header {
    text-align: center;
    padding: 3rem 1rem;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.strength-checker {
    margin-bottom: 2rem;
}

.checker-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.password-input-group {
    margin-bottom: 2rem;
}

.password-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    flex: 1;
    padding: 1rem;
    font-size: 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.password-field input:focus {
    outline: none;
    border-color: #10b981;
}

.toggle-btn {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.toggle-btn:hover {
    opacity: 1;
}

.strength-meter {
    margin-bottom: 2rem;
}

.strength-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s, background-color 0.3s;
    border-radius: 5px;
}

.strength-fill.weak {
    background: #ef4444;
    width: 25%;
}

.strength-fill.fair {
    background: #f59e0b;
    width: 50%;
}

.strength-fill.good {
    background: #3b82f6;
    width: 75%;
}

.strength-fill.strong {
    background: #10b981;
    width: 100%;
}

.strength-label {
    text-align: center;
    font-weight: 600;
    color: #666;
}

.score-display {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.score-circle {
    position: relative;
    width: 150px;
    height: 150px;
}

.score-circle svg {
    width: 100%;
    height: 100%;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-text #scoreNumber {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
}

.score-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

.criteria-list {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.criteria-list h3 {
    margin-bottom: 1rem;
    color: #333;
}

.criteria-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.criteria-icon {
    font-size: 1.2rem;
}

.criteria-item.met .criteria-icon {
    color: #10b981;
}

.feedback-section {
    background: #f0fdf4;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #bbf7d0;
}

.feedback-section h3 {
    margin-bottom: 1rem;
    color: #059669;
}

.feedback-content {
    color: #047857;
    line-height: 1.6;
}

.feedback-content ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.password-generator {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.password-generator h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.generator-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
}

.generator-options {
    margin-bottom: 1.5rem;
}

.option-group {
    margin-bottom: 1rem;
}

.option-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #555;
}

.option-group input[type="range"] {
    width: 100%;
    margin-top: 0.5rem;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.checkbox-group label {
    font-weight: normal;
}

.generated-password {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.generated-password input {
    flex: 1;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    background: white;
}

.copy-btn,
.regenerate-btn {
    padding: 0 1rem;
    border: none;
    background: #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.copy-btn:hover,
.regenerate-btn:hover {
    background: #d4d4d4;
}

.generate-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

.tips-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.tips-section h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s;
}

.tip-card:hover {
    transform: translateY(-3px);
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tip-card h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.tip-card p {
    color: #666;
    line-height: 1.5;
}

.common-passwords {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.common-passwords h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.password-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.bad-password {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.password-manager {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.password-manager h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.best-practices {
    display: grid;
    gap: 1.5rem;
}

.practice-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.practice-number {
    background: #10b981;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.practice-item h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.practice-item p {
    color: #666;
    line-height: 1.5;
}

footer {
    background: rgba(255,255,255,0.95);
    padding: 3rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.ad-area {
    background: #f5f5f5;
    border: 2px dashed #ddd;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-area p {
    color: #999;
}

.security-note {
    font-size: 0.9rem;
    color: #059669;
    margin-bottom: 1rem;
}

.copy-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.copy-notification.show {
    opacity: 1;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}