/* =========================================================
   password-generator.css
   EMARKET24 / Shuvam Infotech
========================================================= */

:root {
    --primary: #6C63FF;
    --primary-dark: #554fd8;
    --secondary: #FF6584;
    --accent: #36D1DC;
    --dark: #2A2D3E;
    --darker: #1F2232;
    --light: #F5F7FF;
    --success: #4CD964;
    --warning: #FFCC00;
    --danger: #FF3B30;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.1);
}

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

/* body {
  
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    color: var(--light);
    padding: 20px;
} */

.main-container1 {

    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* .row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
} */

.col-lg-8, .col-lg-4 {
    
    flex: 1;
    min-width: 300px;
}


.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;

}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
    padding: 25px 30px 15px;
    border-bottom: 1px solid var(--card-border);
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.card-header h3 i {
    margin-right: 12px;
    color: var(--primary);
    font-size: 1.3rem;
}

.card-body {
    padding: 25px 30px;
}

.password-display-container {
    position: relative;
    margin-bottom: 25px;
}

.password-display {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
    font-size: 1.3rem;
    font-family: 'Courier New', monospace;
    text-align: center;
    border: 1px solid var(--card-border);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-all;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.password-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.password-display:hover::before {
    left: 100%;
}

.password-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #e0557a);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 101, 132, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(255, 101, 132, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--light);
    border: 1px solid var(--card-border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 1rem;
}

.range-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.range-value {
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(108, 99, 255, 0.3);
}

.form-range {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}

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

.option-check {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.option-check:hover {
    background: rgba(108, 99, 255, 0.1);
    transform: translateY(-2px);
}

.option-check input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.strength-meter {
    margin-top: 30px;
}

.strength-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.strength-bar {
    height: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    border-radius: 10px;
    width: 0%;
    transition: all 0.5s ease;
    background: linear-gradient(90deg, var(--danger), var(--warning), var(--success));
}

.strength-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.tool-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
}

.tool-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.tool-desc {
    font-size: 0.8rem;
    opacity: 0.7;
}

.password-history {
    max-height: 200px;
    overflow-y: auto;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
}

.history-item {
    padding: 12px 15px;
    border-bottom: 1px solid var(--card-border);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.history-item:last-child {
    border-bottom: none;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px;
    border-radius: 5px;
}

.copy-btn:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.tips-card {
    margin-top: 30px;
}

.tips-list {
    list-style: none;
}

.tips-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list li i {
    color: var(--primary);
    margin-right: 12px;
    font-size: 0.9rem;
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--success);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    margin-right: 10px;
    font-size: 1.2rem;
}

@media (max-width: 992px) {
    .row {
        flex-direction: column;
    }
    
    .col-lg-8, .col-lg-4 {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .password-actions {
        flex-direction: column;
    }
}

/* Animation for password generation */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(108, 99, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0); }
}

.generating {
    animation: pulse 1.5s infinite;
}

/* Reusable quick-tool link wrapper */
.tool-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.tool-card-link:hover {
    color: inherit;
}
