/**
 * Password Generator Pro
 * Custom styles
 */

/* General Styles */
body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #f9f9f9;
}

main {
    flex: 1 0 auto;
    padding: 20px 0;
}

.container {
    width: 90%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
}

.btn, .btn-large, .btn-small {
    border-radius: 4px;
    text-transform: none;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.card {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 17px 2px rgba(0,0,0,0.14), 
                0 3px 14px 2px rgba(0,0,0,0.12), 
                0 5px 5px -3px rgba(0,0,0,0.2);
}

.section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.center-align {
    text-align: center;
}

.flow-text {
    font-weight: 300;
}

/* Spacing Utilities */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mr-10 { margin-right: 10px; }
.mr-20 { margin-right: 20px; }

/* Header styles */
nav {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav .brand-logo {
    display: flex;
    align-items: center;
    font-weight: 500;
    height: 100%;
}

nav ul a {
    font-weight: 500;
}

nav .brand-logo i {
    margin-right: 8px;
}

.nav-wrapper {
    padding: 0 10px;
}

.sidenav-header {
    padding: 20px 0;
}

.sidenav li > a.active {
    background-color: rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

.logo-icon {
    height: 36px;
    margin-top: 10px;
}

/* Language selector */
.language-selector {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

.language-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 10px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.language-item:hover {
    opacity: 1;
}

.language-item.active {
    opacity: 1;
}

.language-flag {
    width: 24px;
    height: 16px;
    margin-bottom: 5px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.language-code {
    font-size: 10px;
    color: #fff;
}

.dropdown-content .language-flag {
    margin-right: 8px;
    vertical-align: middle;
}

/* Password generator card */
#generated-password {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.5rem;
    letter-spacing: 1.2px;
    height: 3rem;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 15px;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    
    /* 🔥 Perfect Center Alignment */
    display: flex;
    align-items: center;        /* Vertical center */
    justify-content: center;    /* Horizontal center */
    text-align: center;         /* Text center */
    
    /* 🎨 Better User Experience */
    user-select: all;          /* Select all text on click */
    cursor: pointer;           /* Show pointer cursor */
    overflow: hidden;          /* Hide overflow */
    white-space: nowrap;       /* Prevent line breaks */
}


#generated-password:focus {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    outline: 2px solid #673ab7;  /* 👈 ADD THIS */
    outline-offset: 2px;         /* 👈 ADD THIS */
}

#generated-password:hover {
    background-color: #fff;
    border-color: #673ab7;
    box-shadow: 0 2px 8px rgba(103, 58, 183, 0.2);
}

#password-length {
    margin-top: 0;
}

.hidden {
    display: none !important;
}

/* Strength meter */
#password-strength {
    margin: 20px 0;
}

.progress {
    height: 10px;
    border-radius: 5px;
}

.progress .determinate {
    transition: width 0.5s ease-out;
}

/* Button Styles */
.btn, .btn-large {
    margin-bottom: 10px;
    width: 100%;
    height: auto;
    line-height: 42px;
}

.btn i, .btn-large i {
    font-size: 20px;
    vertical-align: middle;
}

/* Social sharing buttons */
.social-sharing {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.social-sharing .btn-floating {
    margin: 0 5px;
    transition: transform 0.3s ease;
}

.social-sharing .btn-floating:hover {
    transform: translateY(-3px);
}

/* Social icons in footer */
.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icons a {
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.social-icons i {
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 36px;
}

/* Feature icons */
.feature-icon {
    font-size: 48px;
    margin-bottom: 10px;
    color: #673ab7;
}

.promo {
    padding: 20px 10px;
}

.promo-caption {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 5px;
    margin-bottom: 15px;
}

/* Footer Styles */
/* 1. Even spacing between columns */
.page-footer .row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px; /* or 30px based on your visual preference */
}

/* 2. Make each column grow equally (optional but improves balance) */
.page-footer .col {
    flex: 1 1 220px;
}

/* 3. Fix logo alignment */
.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-copyright .row {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

.footer-logo {
    margin-bottom: 10px;
    max-width: 160px;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    margin-bottom: 8px;
}

/* 5. Add spacing between headings and content */
.page-footer h5 {
    margin-bottom: 12px;
}

.mt-30 {
    margin-top: 30px;
}


@media only screen and (max-width: 992px) {
  .footer-logo-section {
    text-align: left;
    align-items: left;
  }
}

/* FAQ accordion */
.collapsible {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.collapsible-header {
    font-weight: 500;
    display: flex;
    align-items: center;
}

.collapsible-header i {
    margin-right: 15px;
    font-size: 20px;
    color: #673ab7;
}

.collapsible-body {
    padding: 20px;
    background-color: #fafafa;
}

/* Tabs styling */
.tabs {
    background-color: transparent;
}

.tabs .tab a {
    color: #673ab7;
    transition: color 0.3s ease;
}

.tabs .tab a:hover {
    color: #9575cd;
}

.tabs .tab a.active {
    color: #673ab7;
    font-weight: 500;
}

.tabs .indicator {
    background-color: #673ab7;
    height: 3px;
}

/* Team member styling */
.team-member {
    padding: 20px;
    margin-bottom: 20px;
}

.team-member i.large {
    font-size: 48px;
    color: #673ab7;
}

.team-member h5 {
    margin: 10px 0 5px;
}

/* Cookie consent banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.cookie-content {
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    flex-grow: 1;
}

/* Toast customization */
.toast {
    border-radius: 24px;
    font-weight: 500;
    padding: 10px 25px;
}

/* Animation effects */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fadeIn {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slideUp {
    animation: slideUp 0.5s ease-in-out;
}

@media only screen and (max-width: 992px) {
    .btn, .btn-large {
        width: 100%;
    }
    
    #generated-password {
        font-size: 1.2rem;        /* Smaller font on mobile */
        letter-spacing: 1px;      /* Less spacing on mobile */
        height: 2.5rem;           /* Smaller height */
    }
}
    
    #generated-password {
        font-size: 1.2rem;
    }
    
    .social-sharing {
        gap: 10px;
    }
}

@media only screen and (max-width: 992px) {
    h1.header {
        font-size: 2rem;
    }
    
    h5.light {
        font-size: 1.2rem;
    }
    
    .footer-logo-section {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
/* 4. Add spacing between language flags */
.language-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content button {
        width: 100%;
    }
}

.feature-card {
  background-color: #fff;
  padding: 30px 20px;
  margin-bottom: 30px;
  border-radius: 10px;
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 48px;
  color: #7e57c2;
  margin-bottom: 15px;
}

.promo-caption {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 20px;
}

.feature-card p {
  color: #555;
  line-height: 1.6;
  font-size: 15px;
}
