/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, #1e3c72, #2a5298);
    color: #f1f1f1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #ffffff;
    color: #1e3c72;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.6em;
    font-weight: bold;
}

.menu-button {
    font-size: 24px;
    cursor: pointer;
}

.menu-button::after {
    content: "\2807";
}

/* Sidebar - Desktop View */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 220px;
    height: calc(100vh - 60px);
    background-color: #ffffff;
    color: #333;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
    border-right: 1px solid #ddd;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #1e3c72;
    font-size: 16px;
    transition: 0.3s;
    background-color: transparent;
    border-bottom: 1px solid #eee;
}

.sidebar a i {
    width: 25px;
    margin-right: 10px;
}

.sidebar a:hover {
    background-color: #eaeaea;
    transform: scale(1.02);
    color: #000;
}

.sidebar a:hover i {
    transform: rotate(10deg);
}

@media screen and (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: column;
        align-items: center;
    }

    .sidebar a {
        text-align: center;
        font-size: 14px;
        padding: 10px 0;
    }
}

/* Content Area */
.newcontainer {
    background-color: #ffffff10;
    color: #ffffff;
    padding: 20px 5%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    border-radius: 10px;
    margin-top: 80px;
    margin-left: 220px;
    width: calc(100% - 220px);
}

.text-content {
    max-width: 600px;
}

.text-content h2 {
    font-size: 26px;
    font-weight: bold;
}

.text-content h3 {
    font-size: 20px;
    margin-top: 10px;
}

.text-content p {
    font-size: 15px;
    margin-top: 10px;
    line-height: 1.6;
}

.image-container img {
    width: 100%;
    max-width: 450px;
    border-radius: 10px;
}

@media screen and (max-width: 768px) {
    .newcontainer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
    }
}

.content-container {
    display: flex;
    align-items: center;
    margin-left: 220px;
    padding: 10px;
    margin-top: 80px;
}

.typing-container {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
    color: white;
    max-width: 100%;
    padding: 0 20px;
}

@media screen and (max-width: 768px) {
    .content-container {
        flex-direction: column;
        align-items: center;
        margin-left: 0;
        padding: 10px;
    }

    .typing-container {
        font-size: 16px;
        width: 90%;
        padding: 0 10px;
    }
}

.footer {
    background-color: #1e1e2f;
    color: white;
    padding: 30px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 12px 12px 0 0;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

.footer-section h3, 
.footer-section h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 5px 0;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
}

.footer-section ul li a:hover {
    text-decoration: underline;
    color: #28a745;
}

.social-icons a {
    margin: 0 8px;
    font-size: 18px;
    color: white;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #28a745;
}

.footer-bottom {
    font-size: 14px;
}

@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        text-align: center;
    }
}

#custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: none;
    opacity: 0.95;
    transition: all 0.3s ease-in-out;
}

#custom-alert.success { background-color: #28a745; }
#custom-alert.error { background-color: #dc3545; }

/* Security - Hide content before login */
body.protected .sidebar,
body.protected .newcontainer,
body.protected .content-container,
body.protected .footer {
    display: none;
}