@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,700;1,300&family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans', sans-serif;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body {
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    animation: gradientBG 1s infinite alternate;
    background-size: 400% 400%;
    min-height: 100vh;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Loader Styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease, visibility 1s ease;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.loader-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.loader-text h3 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(255, 255, 255, 0.5);
}

.loader-text p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.loader-spinner {
    margin-top: 10px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #fff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

nav {
    background: linear-gradient(90deg, #000000, #434343);
    color: white;
    padding: 15px 5px;
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #555555;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo {
    margin: 0 30px;
    font-weight: 900;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.logo:hover {
    color: #ff4081;
    transform: scale(1.1);
    text-shadow: 0 0 5px #ff4081;
    transition: all 0.3s ease-in-out;
}

ul {
    display: flex;
    margin: 0 30px;
    align-items: center;
    list-style: none;
}

ol {
    align-items: center;
    display: flex;
    margin: 0 30px;
    flex-direction: column;
    line-height: 2rem;
}

ul>li {
    margin: 0 18px;
    cursor: pointer;
    padding: 10px 0;
    transition: all 0.3s ease-in-out;
}

ul>li:hover {
    color: #ff4081;
    transform: scale(1.1);
    text-shadow: 0 0 5px #ff4081;
}

ul>li a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

ul>li a:hover {
    color: #ff4081;
}

.search-container {
    position: relative;
    margin: 20px 0;
}

.search-container input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border-radius: 50px;
    border: 2px solid #ddd;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-container input:focus {
    border-color: #ff4081;
    box-shadow: 0 0 10px rgba(255, 64, 129, 0.2);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    font-size: 20px;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background-color: #f8f9fa;
    color: #333;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f1f1f1;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-state h3 {
    margin: 10px 0;
    color: #555;
}

.empty-state p {
    color: #777;
    max-width: 400px;
    margin: 0 auto;
}

.container {
    max-width: 80vw;
    margin: 30px auto;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

h1, h2, h3 {
    margin: 25px 0;
    text-align: center;
    font-weight: 600;
    color: #333333;
}

h2 {
    margin-top: 40px;
}

p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border 0.3s ease;
}

.form-group input:focus {
    border-color: #ff4081;
    outline: none;
}

.password-input-group {
    position: relative;
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #ff4081;
}

.password-strength {
    margin-top: 10px;
}

.strength-meter {
    height: 6px;
    background-color: #eee;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-meter::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background-color: #ddd;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-meter.weak::before {
    width: 33.33%;
    background-color: #ff4d4d;
}

.strength-meter.medium::before {
    width: 66.66%;
    background-color: #ffb74d;
}

.strength-meter.strong::before {
    width: 100%;
    background-color: #66bb6a;
}

.strength-text {
    font-size: 12px;
    color: #777;
}

.password-generator {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.password-generator h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
}

.generator-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.length-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.length-control label {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.length-control input {
    width: 100%;
    cursor: pointer;
}

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

.option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.option label {
    cursor: pointer;
    font-size: 14px;
}

.btn, .btn-secondary {
    padding: 12px 25px;
    background: linear-gradient(90deg, #000000, #434343);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    margin: 20px 0 10px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-align: center;
    display: inline-block;
}

.btn-secondary {
    background: #ff4081;
    align-self: center;
}

.btn:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.btnsm {
    padding: 6px 12px;
    background-color: #ff4081;
    color: white;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.btnsm:hover {
    background-color: #e03070;
}

.action-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.action-icon {
    cursor: pointer;
    color: #555;
    font-size: 18px;
    transition: color 0.2s;
}

.action-icon:hover {
    color: #ff4081;
}

.copy-icon {
    cursor: pointer;
    color: #777;
    margin-left: 5px;
    font-size: 16px;
    transition: color 0.2s ease;
}

.copy-icon:hover {
    color: #ff4081;
}

.masked-password {
    font-family: monospace;
    letter-spacing: 1px;
}

#alert {
    display: none;
    font-size: 14px;
    color: #66bb6a;
    font-weight: normal;
    padding: 3px 8px;
    background-color: rgba(102, 187, 106, 0.1);
    border-radius: 4px;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .logo {
        margin: 0 15px;
        font-size: 22px;
    }

    ul {
        margin: 0 15px;
    }

    ul>li {
        margin: 0 10px;
    }

    .container {
        max-width: 95vw;
        margin: 20px auto;
        padding: 15px;
    }

    h1, h2, h3 {
        font-size: 24px;
    }

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

    table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }

    nav {
        flex-direction: column;
        align-items: center;
        padding: 10px 5px;
    }

    ul {
        margin-top: 10px;
    }

    .container {
        padding: 10px;
    }

    h1, h2, h3 {
        font-size: 20px;
    }

    .btn, .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }

    .empty-state {
        padding: 20px 10px;
    }

    .empty-state-icon {
        width: 60px;
        height: 60px;
    }
}