/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #F8F9FA;
    color: #343A40;
    line-height: 1.5;
}

/* Page Layout */
.page-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 64px 24px;
}

/* Typography */
.page-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: #343A40;
    text-align: center;
    margin-bottom: 48px;
}

/* Generator Card */
.generator-card {
    background: #FFFFFF;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0px 8px 24px rgba(0, 102, 255, 0.08);
    margin-bottom: 32px;
}

/* Form Section */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-label {
    font-size: 16px;
    font-weight: 400;
    color: #343A40;
}

.input-container {
    display: flex;
    gap: 16px;
    align-items: center;
}

.number-input {
    flex: 1;
    height: 56px;
    background: #F8F9FA;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    color: #343A40;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.number-input:focus {
    outline: none;
    border-color: #0066FF;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
}

.generate-btn {
    height: 56px;
    background: #0066FF;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 0 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: transform 200ms ease, background-color 200ms ease;
    white-space: nowrap;
}

.generate-btn:hover {
    background: #004DCF;
    transform: translateY(-2px);
}

.generate-btn:active {
    transform: scale(0.98);
}

/* Results Container */
.results-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Password Item */
.password-item {
    background: #FFFFFF;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0px 8px 24px rgba(0, 102, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.password-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 400;
    color: #212529;
    letter-spacing: 0.5px;
}

.copy-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6C757D;
    transition: color 200ms ease-out;
}

.copy-btn:hover {
    color: #0066FF;
}

.copy-icon {
    width: 24px;
    height: 24px;
}

/* Success Message */
.success-message {
    color: #28A745;
    font-size: 14px;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 300ms ease;
}

.success-message.show {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-container {
        padding: 32px 24px;
    }
    
    .page-title {
        font-size: 24px;
        margin-bottom: 32px;
    }
    
    .generator-card {
        padding: 24px;
    }
    
    .input-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .generate-btn {
        width: 100%;
    }
    
    .password-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .copy-btn {
        align-self: flex-end;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .generate-btn,
    .copy-btn {
        transition: none;
    }
    
    .generate-btn:hover {
        transform: none;
    }
    
    .generate-btn:active {
        transform: none;
    }
}