/* Random Password Generator Styles */

/* Page Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.page-title {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-subtitle {
    color: #6c757d;
    font-size: 1.2rem;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-buttons-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Tool Section */
.tool-section {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.tool-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Controls Section */
.controls-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
    align-items: center;
}

.controls-row {
    display: flex;
    gap: 25px;
    width: 100%;
    max-width: 700px;
    justify-content: center;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    max-width: 320px;
}

.control-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.control-input {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.2s ease;
}

.control-input:focus {
    outline: none;
    border-color: #007bff;
}

/* Length Control */
.length-control {
    display: flex;
    gap: 12px;
    align-items: center;
}

.length-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
}

.length-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.length-slider::-webkit-slider-thumb:hover {
    background: #0056b3;
}

.length-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: none;
}

.length-input {
    width: 70px;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.length-input:focus {
    outline: none;
    border-color: #007bff;
}

/* Character Options */
.character-options {
    width: 100%;
    max-width: 700px;
}

.character-options h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.option-item:hover {
    background: #e9ecef;
}

.option-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.option-item input[type="checkbox"]:checked + .checkmark {
    background: #007bff;
    border-color: #007bff;
}

.option-item input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.option-label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.95rem;
}

/* Generate Button */
.generate-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    justify-content: center;
    margin-top: 10px;
}

.generate-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.generate-btn:active {
    transform: translateY(0);
}

.generate-btn .loading-spinner {
    display: none;
}

.generate-btn.loading .btn-text {
    display: none;
}

.generate-btn.loading .loading-spinner {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Passwords Display */
.passwords-display {
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.passwords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 1200px;
    justify-items: center;
}

.password-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.password-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.password-display {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.password-text {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    word-break: break-all;
    line-height: 1.4;
    margin-bottom: 10px;
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.password-length {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 8px;
    text-align: center;
}

.strength-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.strength-bar {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.strength-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.password-actions {
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.copy-btn {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: #218838;
}

.regenerate-btn {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.regenerate-btn:hover {
    background: #5a6268;
}

/* Strength Info Panel */
.strength-info-panel {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}

.strength-info-panel h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.strength-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail-group {
    background: white;
    padding: 15px;
    border-radius: 8px;
}

.detail-group h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.detail-label {
    color: #6c757d;
}

.detail-value {
    color: #2c3e50;
    font-weight: 500;
}

/* Instructions Section */
.instructions-section {
    margin-bottom: 40px;
}

.instructions-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2rem;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.instruction-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.instruction-item:hover {
    transform: translateY(-3px);
}

.instruction-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.instruction-icon i {
    color: white;
    font-size: 1.5rem;
}

.instruction-content h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.instruction-content p {
    color: #6c757d;
    line-height: 1.6;
}

/* Features Section */
.features-section {
    margin-bottom: 40px;
}

.features-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.feature-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
}

.feature-item i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 20px;
}

.feature-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-item p {
    color: #6c757d;
    line-height: 1.6;
}

/* SEO Content Section */
.seo-content-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
}

.seo-content h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 25px;
    border-bottom: 3px solid #007bff;
    padding-bottom: 10px;
}

.seo-content h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.seo-content h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.seo-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.seo-content ul {
    color: #555;
    padding-left: 25px;
    margin-bottom: 20px;
}

.seo-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.seo-content li strong {
    color: #2c3e50;
}

/* Copy Success Animation */
.copy-success {
    background: #d4edda !important;
    border-color: #c3e6cb !important;
}

.copy-success .copy-icon {
    color: #28a745 !important;
}

/* Loading State */
.passwords-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Mobile Styles */
@media (max-width: 767px) {
    .container {
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
    }

    .page-header {
        padding: 20px 0;
        text-align: center;
        width: 100%;
    }

    .page-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .page-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
        max-width: 100%;
    }

    .tool-container {
        padding: 20px 15px;
        margin: 0 auto;
        border-radius: 8px;
        width: 100%;
        max-width: 100%;
    }

    .tool-section {
        width: 100%;
        display: block;
    }

    .controls-section {
        gap: 20px;
        padding: 0;
    }

    .controls-row {
        flex-direction: column;
        gap: 15px;
        max-width: 100%;
    }

    .control-group {
        max-width: 100%;
        flex: none;
    }

    .control-group label {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .control-input {
        padding: 12px 14px;
        font-size: 0.95rem;
        border-radius: 6px;
    }

    .length-control {
        gap: 10px;
    }

    .length-input {
        width: 60px;
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .character-options {
        max-width: 100%;
    }

    .character-options h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .options-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .option-item {
        padding: 10px 14px;
        border-radius: 6px;
    }

    .option-label {
        font-size: 0.9rem;
    }

    .generate-btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 1.05rem;
        margin-top: 10px;
        border-radius: 8px;
        min-width: auto;
    }

    .passwords-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 15px;
    }

    .password-card {
        margin: 0;
        max-width: 100%;
        border-radius: 8px;
    }

    .password-display {
        padding: 15px;
        text-align: center;
    }

    .password-text {
        font-size: 1rem;
        line-height: 1.3;
        text-align: center;
        padding: 8px;
    }

    .password-actions {
        padding: 12px 15px;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        justify-content: center;
    }

    .copy-btn,
    .regenerate-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }

    .strength-info-panel {
        padding: 20px 15px;
        margin-top: 15px;
        border-radius: 8px;
    }

    .strength-info-panel h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .strength-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .detail-group {
        padding: 12px;
        border-radius: 6px;
    }

    .detail-group h4 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .detail-item {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .instructions-section,
    .features-section {
        margin-bottom: 30px;
    }

    .instructions-section h2,
    .features-section h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .instructions-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .instruction-item,
    .feature-item {
        padding: 20px 15px;
        border-radius: 8px;
    }

    .instruction-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .instruction-icon i {
        font-size: 1.3rem;
    }

    .instruction-content h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .instruction-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .feature-item i {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .feature-item h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .feature-item p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .seo-content-section {
        padding: 25px 15px;
        margin: 20px 0 0;
        border-radius: 8px;
    }

    .seo-content h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .seo-content h3 {
        font-size: 1.25rem;
        margin-top: 25px;
        margin-bottom: 12px;
    }

    .seo-content h4 {
        font-size: 1.1rem;
        margin-top: 18px;
        margin-bottom: 8px;
    }

    .seo-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    .seo-content ul {
        padding-left: 20px;
        margin-bottom: 15px;
    }

    .seo-content li {
        font-size: 0.9rem;
        margin-bottom: 6px;
        line-height: 1.5;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .page-subtitle {
        font-size: 0.95rem;
    }

    .tool-container {
        padding: 15px 12px;
    }

    .controls-section {
        gap: 15px;
    }

    .length-control {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .length-input {
        width: 100%;
        text-align: center;
    }

    .options-grid {
        gap: 8px;
    }

    .option-item {
        padding: 8px 12px;
    }

    .checkmark {
        width: 18px;
        height: 18px;
    }

    .option-label {
        font-size: 0.85rem;
    }

    .generate-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .password-text {
        font-size: 0.9rem;
    }

    .instructions-section h2,
    .features-section h2 {
        font-size: 1.4rem;
    }

    .instruction-content h3,
    .feature-item h3 {
        font-size: 1rem;
    }

    .instruction-content p,
    .feature-item p {
        font-size: 0.85rem;
    }

    .seo-content h2 {
        font-size: 1.3rem;
    }

    .seo-content h3 {
        font-size: 1.15rem;
    }

    .seo-content h4 {
        font-size: 1rem;
    }

    .seo-content p,
    .seo-content li {
        font-size: 0.9rem;
    }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 1024px) {
    .tool-container {
        padding: 25px;
    }

    .controls-section {
        gap: 22px;
    }

    .controls-row {
        gap: 25px;
        max-width: 600px;
    }

    .control-group {
        max-width: 280px;
    }

    .generate-btn {
        margin-top: 5px;
        max-width: 280px;
    }

    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .passwords-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .instructions-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .seo-content-section {
        padding: 35px 25px;
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .controls-row {
        gap: 30px;
        max-width: 800px;
    }

    .passwords-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .instructions-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
