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

* {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans', sans-serif;
    font-family: 'Poppins', sans-serif;
}
body.dark-mode::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay */
    z-index: -1; /* Place it behind the content */
}
::-webkit-scrollbar {
    display: none;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    overflow-y: auto;  /* Ensure scrolling is still enabled */
}

.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.dark-mode nav {
    background-color: #1e1e1e;
    color: #ffffff;
}

.dark-mode .container {
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
}

.dark-mode table, .dark-mode td, .dark-mode tr {
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.dark-mode input {
    background-color: #333;
    color: #ffffff;
    box-shadow: 0 1px 10px rgba(255, 255, 255, 0.2);
}

.dark-mode .btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dark-mode .btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.dark-mode .btnsm {
    background: rgba(211, 26, 26, 0.8);
    color: #ffffff;
}

.dark-mode .btnsm:hover {
    background-color: rgba(210, 49, 49, 0.9);
    color: #ffffff;
}
.dark-mode .container img {
    filter: invert(1); /* Inverts the colors of the image */
}
/* Dark mode styles for login and signup links */
.dark-mode .btnaa {
    color: #ffffff; /* Change link color to white in dark mode */
}

.dark-mode .btnaa:hover {
    color: #cccccc; /* Change hover color to a lighter shade of gray in dark mode */
}

/* Hamburger Icon Styles */
#hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    padding: 10px;
    background: none;
    border: none;
    color: inherit;
}

/* Dark Mode Hamburger Icon */
.dark-mode #hamburger i {
    color: white; /* Change icon color in dark mode */
}

/* Responsive Styles for Small Screens */
@media (max-width: 768px) {
    #hamburger {
        display: block;
    }
    nav {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        padding: 1rem;
        gap: 0;
    }
    .nav-actions {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    nav .logo {
        flex-basis: 100%;
        text-align: center;
        margin: 0 0 0.5rem 0;
    }
    #menu-trigger {
        margin-right: 0.5rem;
    }
    #logoutButton {
        margin-left: 0;
    }
    #nav-menu {
        width: 100vw;
        left: 0;
        right: 0;
        top: 100%;
        border-radius: 0 0 12px 12px;
    }
}
/* Dark Mode Hamburger Icon */
.dark-mode #hamburger i {
    color: white; /* Change icon color in dark mode */
}

/* Dark Mode Navigation Menu */
.dark-mode #nav-menu {
    background-color: #1e1e1e; /* Dark background for the menu */
    color: #ffffff; /* Light text color */
}

.dark-mode #nav-menu a {
    color: #ffffff; /* Light text color for links */
}

.dark-mode #nav-menu a:hover {
    color: #cccccc; /* Lighter shade for hover state */
}

body{
    width: 100%;
    height: 100vh;
    /* background-color: rgba(0, 0, 0, 0.333); */
    background-image: url("psss.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-attachment:fixed;
    background-size: cover;
    /* background-size: fill; */
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s, border-bottom 0.3s;
    box-shadow: 0 2px 4px var(--shadow-color);
    gap: 1.5rem;
}

nav .logo {
    font-family: "Caveat", serif;
    font-size: 1.75rem;
    color: var(--primary-color);
    cursor: default;
}
#nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    flex: 1;
}
#nav-menu li {
    margin: 0;
}
#logoutButton {
    margin-left: auto;
    white-space: nowrap;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        padding: 1rem;
        gap: 0;
    }
    .nav-actions {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    nav .logo {
        flex-basis: 100%;
        text-align: center;
        margin: 0 0 0.5rem 0;
    }
    #menu-trigger {
        margin-right: 0.5rem;
    }
    #logoutButton {
        margin-left: 0;
    }
    #nav-menu {
        width: 100vw;
        left: 0;
        right: 0;
        top: 100%;
        border-radius: 0 0 12px 12px;
    }
}

.logo{
    margin: 0 23px;
    font-weight: 800;
    font-size: 25px;
    cursor: pointer;
    font-family: "Caveat", serif;
}

ul {
    display: flex;
    margin: 0 23px;
    align-items: center;
}

ul li {
    list-style: none;
    margin: 0 13px;
    cursor: pointer;
    transition-duration: 0.5s;
    /* border: 2px solid orange; */
    height: 13px;
}

ul li:hover{
    color: gray;
}




table, td, tr{
    border-collapse: collapse;
    padding: 10px 20px;
    text-align: center;
    gap: 50px;
    border: none;
    background-color: rgba(255, 255, 255, 0.152);
    /* border-width: 10px; */
    /* border: 2px solid orange; */
    
}
table{
    width: 100%;
    height: auto;
    overflow-x: scroll;
    overflow-y: scroll;
    /* border-radius: 20px; */
}

.container {
    max-width: 80vw;
    margin: 23px auto;
    align-items: center;
    padding: 13px 23px;
    /* margin-bottom: 30px; */

    background: rgba(255, 255, 255, 0.21);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2.2px);
    -webkit-backdrop-filter: blur(2.2px);

    width: 40%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* box-shadow: rgba(7, 5, 5, 0.593) 0px 2px 8px 0px; */
}

h1, h2, h3 {
    margin: 23px 0;
    text-align: center;
    /* font-family: "Kaushan Script", serif; */
    font-family: "News Cycle", serif;
    cursor: default;
}

.btn{
    padding: 8px 17px;
    /* background: black; */
    /* color: white; */
    font-weight: 900;
    border: none;
    /* border-radius: 8px; */
    margin: 25px 0;
    cursor: pointer;

    background: rgba(255, 255, 255, 0.21);
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2.2px);
    -webkit-backdrop-filter: blur(2.2px);

    transition-duration: 0.4s;

}
.btn:hover{
    background-color: rgba(255, 255, 255, 0.751);
    color:  black;
}

.btnsm{ 
    padding: 8px 17px;
    background: black;
    color: white;
    font-weight: 900;
    border: none;
    border-radius: 8px; 
    cursor: pointer;

    background: rgba(211, 26, 26, 0.644);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.312);
    backdrop-filter: blur(4.1px);
    -webkit-backdrop-filter: blur(4.1px);

    transition-duration: 0.4s;
    
}
.btnsm:hover{
    background-color: rgb(210, 49, 49);
    color: rgb(255, 255, 255);
}

img{
    cursor: pointer;
    position: relative;
    bottom: 7px;
    width: 15px;
    height: 13px;
    
}
input{
    border: none;
    border-radius: 3px;
    text-indent: 5px;
    cursor: text;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.749);
    font-size: 15px;
    padding: 6px 6px;
    width: 100%;
    margin-bottom: 15px;
}
form{
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
    margin-top: 20px;
    display:flex;
    padding-top: 50px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 10px;
    /* background-color: rgb(122, 122, 122); */
    height: 150px;
    border-radius: 25px;
}
.btnaa{
    text-decoration: none;
    color: black;
    transition-duration: 0.4s;
}
.btnaa:hover{
    color:gray;
}
.btnggl{
    text-decoration: none;
    color: white;
    background-color: red;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    transition-duration: 0.4s;
}
.btnggl:hover{
    background-color: rgba(255, 0, 0, 0.655);
    color: rgba(255, 255, 255, 0.527);
}

.btn-165 {
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
    border-radius: 0.5rem;
    border: 1px solid #bebebe;
    gap: 10px;
    color: #414141;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    /*** full width block ***/
    /* width: 100%; */
}

.btn-165 svg {
    height: 24px;
}

.btn-165:hover {
    border: solid 1px #464545;
}

.btn-165:active {
    margin-top: 1px;
}

/*** disabled style ***/
.btn-165:disabled {
    pointer-events: none;
    opacity: .65;
    color: #7e7e7e;
    background: #dcdcdc;
    box-shadow: none;
    text-shadow: none;
}

#alert{
    display: none;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
}

.modal-content input {
    width: calc(100% - 40px);
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.link-button {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    padding: 10px;
    font-family: inherit;
    font-size: 1em;
}

.link-button:hover {
    color: #0056b3;
}

.dark-mode .link-button {
    color: #58a6ff;
}

.dark-mode .link-button:hover {
    color: #79b8ff;
}

.recovery-key {
    background-color: #e9ecef;
    color: #495057;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1em;
    font-weight: bold;
    margin: 20px 0;
    word-wrap: break-word;
    border: 1px dashed #ced4da;
}

.dark-mode .recovery-key {
    background-color: #343a40;
    color: #f8f9fa;
    border-color: #6c757d;
}

.dark-mode .modal-content {
    background-color: #333;
    color: white;
}

.form-logo {
    width: 60px;
    height: 60px;
}

nav .btn {
    margin: 0;
    padding: 8px 17px;
}

#nav-menu a {
    text-decoration: none;
    color: inherit;
}

/* Responsive Table */
#password-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Force scroll on smaller screens */
}

/* Base Navigation Styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 23px;
    position: relative; /* For positioning the mobile menu */
}

#nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
}

#nav-menu li {
    margin: 0 15px;
}

#menu-trigger {
    display: none; /* Hidden on desktop */
}

/* Responsive Design for Navigation */
@media (max-width: 768px) {
    #nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        width: 100vw;
        background-color: var(--card-bg, white);
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        z-index: 1000;
        border-radius: 0 0 12px 12px;
    }

    #nav-menu.active {
        display: flex;
    }

    #nav-menu li {
        width: 100%;
        text-align: center;
        margin-bottom: 8px; /* Add spacing between items */
    }
    #nav-menu li:last-child {
        margin-bottom: 0;
    }

    #nav-menu a, #nav-menu button, #nav-menu #darkModeToggle {
        display: block;
        padding: 22px 0;
        width: 100%;
        box-sizing: border-box;
        font-size: 1rem;
    }

    #menu-trigger {
        display: block;
    }
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}
nav ul li {
    margin: 0;
}
nav ul a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
nav ul a:hover {
    color: var(--primary-color);
    background: rgba(0,123,255,0.07);
}