:root {
    --primary-color: #3a6ea5;         /* Deep blue - trust/security */
    --secondary-color: #c25e00;       /* Warm orange - alert/warning */
    --dark-color: #004e66;            /* Dark teal - professionalism */
    --light-color: #f0f7fa;           /* Light blue-gray - clean interface */
    --success-color: #2a8d5e;         /* Green - success/secure */
    --danger-color: #b71540;          /* Deep red - danger/compromised */
    --warning-color: #e58e26;         /* Orange - warning/caution */
}

body {
    background-color: var(--light-color);
    font-family: 'Poppins', sans-serif;
}

.navbar {
    background-color: var(--dark-color) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.card-header {
    border-bottom: 0;
    padding: 1.2rem 1.5rem;
}

.card-header.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%) !important;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    background-color: #2e5a89 !important;
    border-color: #2e5a89 !important;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 3px solid var(--primary-color);
}

/* Progress bar colors - custom gradient style */
.progress {
    height: 10px;
    border-radius: 5px;
}

.progress-bar.strength-0 { 
    background: linear-gradient(to right, #b71540, #e55039);
    width: 20%; 
}

.progress-bar.strength-1 { 
    background: linear-gradient(to right, #e55039, #fa983a);
    width: 40%; 
}

.progress-bar.strength-2 { 
    background: linear-gradient(to right, #fa983a, #fbc531);
    width: 60%; 
}

.progress-bar.strength-3 { 
    background: linear-gradient(to right, #fbc531, #78e08f);
    width: 80%; 
}

.progress-bar.strength-4 { 
    background: linear-gradient(to right, #78e08f, #38ada9);
    width: 100%; 
}

/* Custom form controls */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(58, 110, 165, 0.25);
}

.form-range::-webkit-slider-thumb {
    background: var(--primary-color);
}

.form-range::-moz-range-thumb {
    background: var(--primary-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Custom alerts */
.alert-success {
    background-color: rgba(42, 141, 94, 0.15);
    border-color: rgba(42, 141, 94, 0.3);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(183, 21, 64, 0.15);
    border-color: rgba(183, 21, 64, 0.3);
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(229, 142, 38, 0.15);
    border-color: rgba(229, 142, 38, 0.3);
    color: var(--warning-color);
}

/* Footer styling */
footer {
    background-color: var(--dark-color) !important;
    color: white;
    padding: 1.5rem 0 !important;
    margin-top: 3rem !important;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Animation for password generation */
@keyframes highlight {
    0% { background-color: rgba(58, 110, 165, 0.2); }
    100% { background-color: transparent; }
}

.highlight-animation {
    animation: highlight 1.5s ease-out;
}
/* Mobile Responsiveness */
@media (max-width: 767px) {
    /* General adjustments */
    .card-body {
        padding: 1rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Tab navigation */
    .nav-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Input groups */
    .input-group {
        flex-wrap: nowrap;
    }
    
    .form-control-lg {
        font-size: 1rem;
        padding: 0.375rem 0.75rem;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    /* Footer */
    footer .row .col-md-6:first-child {
        margin-bottom: 1rem;
    }
    
    footer .text-md-end {
        text-align: left !important;
    }
    
    /* Fix alert layout */
    .alert .d-flex {
        flex-direction: column;
    }
    
    .alert .d-flex .me-3 {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
}

/* Small phones */
@media (max-width: 400px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Make tab text smaller */
    .nav-tabs .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.5rem;
    }
}
/* Improve input group behavior on mobile */
.input-group .btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Better card spacing on mobile */
@media (max-width: 576px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .card-header h2 {
        font-size: 1.25rem;
    }
    
    .card-header h4 {
        font-size: 1.1rem;
    }
    
    .container.my-5 {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1rem !important;
    }
}

/* Enhance mobile tab experience */
.nav-tabs .nav-link {
    transition: all 0.2s ease;
}

/* Ensure the copy button doesn't break the input group */
#copyPassword, #togglePassword, #toggleLeakPassword {
    min-width: 42px;
}
/* Sticky Footer Setup */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    background-color: var(--dark-color) !important;
    color: white;
    padding: 1.5rem 0 !important;
    margin-top: 0 !important;  /* Remove the top margin */
}