/* Google/Material-inspired CSS for Password Manager */
body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    background: #181a20;
    min-height: 100vh;
    margin: 0;
    color: #aaaaaa;
    position: relative;
}
.bg-blur {
    display: none;
}
.material-topbar {
    background: #23272f;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1.5px solid #23272f;
    backdrop-filter: none;
}
.material-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #c3c3c3;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.material-container, .glass-card {
    background: #23272f;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,.28);
    border-radius: 24px;
    padding: 2.5rem 2rem 2rem 2rem;
    max-width: 480px;
    margin: 3rem auto 0 auto;
    text-align: left;
    border: 1.5px solid #23272f;
    position: relative;
    z-index: 1;
}
h2, .premium-title {
    text-align: center;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #888888;
    font-size: 2rem;
    letter-spacing: 0.5px;
}
.material-icons {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: normal;
    font-size: 2.2rem;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
    color: #3e448f;
}
input, textarea, select, button {
    font-family: inherit;
    font-size: 1rem;
    border-radius: 12px;
    border: 1.5px solid #393e46;
    margin-bottom: 1rem;
    background: #ffffff;
    color: #6b6b6b;
    box-sizing: border-box;
    transition: border 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border: 1.5px solid #8ab4f8;
    box-shadow: 0 0 0 2px #23272f;
}
button, .btn, .premium-btn, .premium-btn-cancel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(322deg, #000000 0%, #181a20 100%);
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    padding: 0.9rem 2.2rem;
    font-size: 1.1rem;
    margin: 0 0.5rem 0.5rem 0.5rem;
    box-shadow: 0 2px 8px rgba(66,133,244,0.10);
    transition: background 0.2s, transform 0.15s;
    cursor: pointer;
    outline: none;
}
button:hover, .btn:hover, .premium-btn:hover {
    background: linear-gradient(90deg, #424242 0%, #000000 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
}
.premium-btn-cancel {
    background: #23272f;
    color: #3e448f;
    border: 2px solid #3e448f;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(251,188,4,0.10);
    transition: background 0.2s, color 0.2s, transform 0.15s;
    cursor: pointer;
}
.premium-btn-cancel:hover {
    background: #3e448f;
    color: #23272f;
    transform: translateY(-2px) scale(1.04);
}
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background-color: rgba(138,180,248,0.3);
    pointer-events: none;
    z-index: 2;
}
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
ul {
    list-style: none;
    padding: 0;
}
li {
    background: #181a20;
    margin: 0.5rem 0;
    padding: 1.2rem 1rem;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
    font-size: 1.08rem;
}
.actions a {
    margin-left: 1rem;
    color: #8ab4f8;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.3rem 0.8rem;
    transition: background 0.15s;
}
.actions a:hover {
    background: #23272f;
}
::-webkit-scrollbar {
    width: 8px;
    background: #23272f;
    border-radius: 8px;
}
::-webkit-scrollbar-thumb {
    background: #393e46;
    border-radius: 8px;
}
/* Responsive styles for mobile screens */
@media (max-width: 600px) {
    body, html {
        padding: 0;
        margin: 0;
        font-size: 15px;
        width: 100vw;
        overflow-x: hidden;
    }
    .container, .main-content, .password-list, .password-card, .header, .navbar, .search-bar, .btn, .form-control {
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }
    .navbar, .header {
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 0.5rem;
        gap: 0.5rem;
    }
    .navbar .btn, .header .btn {
        width: 100%;
        margin: 0.3rem 0;
        padding: 0.7rem 0;
        font-size: 1rem;
    }
    .search-bar {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .search-bar input, .search-bar select, .search-bar button {
        width: 100%;
        margin-bottom: 0.3rem;
        font-size: 1rem;
    }
    .password-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0.5rem;
        font-size: 1rem;
        word-break: break-word;
        width: 100%;
        margin-bottom: 1rem;
    }
    .btn, button, input[type="button"], input[type="submit"] {
        width: 100%;
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }
    .password-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
        margin-top: 0.5rem;
    }
    h1, h2, h3, h4, h5 {
        font-size: 1.2em;
    }
    .export-import-btns, .add-new-btn {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    /* Remove border radius and add more spacing for mobile */
    .container, .main-content, .password-list, .password-card {
        border-radius: 0.5rem !important;
        margin: 0.5rem 0 !important;
    }
    /* Make sure nothing overflows horizontally */
    * {
        max-width: 100vw !important;
        box-sizing: border-box;
    }
}
