body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    overflow: hidden;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('asset_name.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.auth-box {
    width: 400px;
    background: rgba(20, 20, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
}

.tab-link {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab-link.active {
    color: #fff;
    border-bottom: 3px solid #00aaff;
}

.auth-content {
    padding: 30px;
    display: none;
}

.auth-content.active {
    display: block;
}

.auth-content h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 600;
}

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

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.input-group input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: #00aaff;
}

.auth-button {
    width: 100%;
    padding: 12px;
    background: #0088cc;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-button:hover {
    background: #00aaff;
}

.error-message {
    color: #ff4d4d;
    text-align: center;
    margin-top: 15px;
    height: 1em;
}

.hidden {
    display: none !important;
}

/* --- Main App Styles --- */

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 60px;
    background: rgba(20, 20, 30, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-shrink: 0;
}

.top-bar h1 {
    font-size: 20px;
    margin: 0;
    font-weight: 600;
}

#logout-button {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

#logout-button:hover {
    background: rgba(255, 255, 255, 0.2);
}


.main-layout {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}

.sidebar {
    width: 240px;
    background: rgba(20, 20, 30, 0.6);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding-top: 20px;
    flex-shrink: 0;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar nav a {
    display: block;
    padding: 15px 30px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 16px;
    border-left: 4px solid transparent;
    transition: background 0.3s, border-color 0.3s;
}

.sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar nav a.active {
    color: #fff;
    background: rgba(0, 170, 255, 0.2);
    border-left-color: #00aaff;
}


.main-content {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
    background: rgba(0,0,0,0.2);
}

.main-content h2 {
    margin-top: 0;
    font-size: 28px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

/* News styles */
.news-article {
    background: rgba(20, 20, 30, 0.5);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-article h3 {
    margin-top: 0;
    color: #00aaff;
}

.news-article p {
    margin-bottom: 0;
    line-height: 1.6;
}

/* My Account & Admin styles */
.content-box {
    background: rgba(20, 20, 30, 0.5);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-box button {
     padding: 10px 20px;
    background: #0088cc;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.content-box button:hover {
    background: #00aaff;
}

.content-box textarea {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
}

