:root {
    --marine: #004d66;
    --aqua: #008fa3;
    --orange: #ff5722;
    --white: #ffffff;
    --card-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

body {
    background: var(--marine);
    margin: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation bar styling */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: rgba(0, 46, 68, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.user-menu { 
    position: relative; 
    display: inline-block; 
    cursor: pointer; 
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: var(--white);
    min-width: 180px;
    box-shadow: var(--card-shadow);
    border-radius: 12px;
    padding: 10px 0;
    z-index: 2000;
}

.dropdown-content.show {
    display: block !important;
}

.dropdown-content a {
    color: var(--marine);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-weight: 700;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content a:hover { background: #f4f7f8; color: var(--orange); }

/* FIXED: Standardized Centered Content Area */
.content-area {
    flex: 1;
    display: flex;
    justify-content: center; /* Centers the inner container horizontally */
    align-items: flex-start; 
    padding: 60px 20px;
    width: 100%;
    box-sizing: border-box;
}

/* FIXED: Flexible Card Logic */
.card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    border-top: 10px solid var(--orange);
    /* Removed fixed 350px width to allow grid to work */
    width: 100%; 
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-5px); }

/* Tactical Button Styling */
.btn-primary {
    background: var(--aqua);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    font-size: 11px;
    letter-spacing: 1px;
    transition: 0.2s;
    text-align: center;
}

.btn-primary:hover { background: var(--marine); }

/* Standardized Dark Tactical Footer */
.footer-main {
    padding: 30px 20px;
    background: var(--marine);
    border-top: 4px solid var(--orange);
    text-align: center;
    width: 100%;
    margin-top: auto;
    box-sizing: border-box;
}

.footer-links a {
    color: var(--aqua);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.copyright {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin-top: 5px;
}
