/* public_html/assets/css/style.css */
:root {
    --color-primary: #173c68;
    --color-accent: #c5a26e;
    --color-text-dark: #0c2038;
    --color-text-muted: #5a6b7c;
    --color-bg-main: #f4f7f9;
    --color-bg-surface: #ffffff;
    --color-border: #d1dbe5;
    --body-padding: 0 40px;
    --headerHeight: 70px;
    
    --danger: #ef4444;
    --success: #10b981;
}

/* =========================================
   RESET & UTILITIES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-decoration: none;
    list-style: none;
}

body {
    background-color: var(--color-bg-main);
    color: var(--color-text-dark);
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.header {
    height: var(--headerHeight);
    background: var(--color-bg-main);
    padding: 0 30px;
    border-bottom: 2px solid var(--color-primary);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ltHead {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo { width: 45px; height: 45px; }
.logo img { width: 100%; height: 100%; object-fit: contain; }

.webName {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 1px;
}
.webName:hover { color: var(--color-accent); }

/* Desktop Navigation */
.midHead {
    display: flex;
    align-items: center;
}

.midHead ul {
    display: flex;
    flex-direction: row;
    gap: 25px;
}

.midHead ul li a {
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-text-dark);
    font-size: 15px;
    padding: 5px 0;
    transition: color 0.2s;
}

.midHead ul li a:hover {
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
}

/* Right Side (User Info & Controls) */
.rtHead {
    display: flex;
    align-items: center;
    gap: 15px;
}

.loginBtn {
    font-weight: bold;
    color: var(--color-primary);
    font-size: 15px;
}

/* Global Button Styles */
.btn-danger {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
    letter-spacing: 0.5px;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.4);
    transform: translateY(-1px);
}

.btn-danger:active {
    transform: translateY(1px);
}

/* Hamburger Menu (Hidden on Desktop) */
.box {
    width: 35px;
    height: 35px;
    background: var(--color-primary);
    border-radius: 4px;
    display: none;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    cursor: pointer;
    padding: 5px;
}
.box:hover { background: var(--color-accent); }
.bar {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}
.box.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.box.active .bar:nth-child(2) { opacity: 0; }
.box.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Sidebar */
.headerCover {
    position: fixed;
    top: var(--headerHeight);
    right: -100%;
    width: 250px;
    height: calc(100vh - var(--headerHeight));
    background-color: var(--color-primary);
    transition: right 0.4s ease;
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
}
.headerCover.active { right: 0; }

.mobHead ul {
    display: flex;
    flex-direction: column;
    padding: 0 0 20px 0;
}
.mobHead ul li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobHead ul li a {
    display: block;
    padding: 15px 25px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
}
.mobHead ul li a:hover {
    background: var(--color-accent);
    color: var(--color-primary);
}

/* =========================================
   MOBILE MENU USERNAME (PREMIUM ORANGE)
   ========================================= */
.mobile-user-greeting {
    padding: 25px 20px;
    background: #0a192f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid #ff7a00;
    cursor: default;
    margin-bottom: 10px;
}

.mobile-user-greeting .greeting-text {
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.mobile-user-greeting .highlight-user {
    color: #ffffff;
    background: linear-gradient(135deg, #ff7a00, #ff4500); 
    font-size: 18px;
    font-weight: 900;
    text-transform: capitalize;
    padding: 6px 24px;
    border-radius: 30px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.4);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* =========================================
   CARDS & PANELS
   ========================================= */
.main-container {
 margin-top: calc(var(--headerHeight) +30px );
    padding: var(--body-padding);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.main-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.webCard {
    width: 280px;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(23, 60, 104, 0.08);
    transition: transform 0.3s;
}
.webCard:hover {
    background: var(--color-primary);
    transform: translateY(-5px);
}
.webCard img {
    border-radius: 12px;
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}
.webCard .cardHead {
    color: var(--color-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}
.webCard .cardSubHead {
    color: var(--color-text-muted);
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
}
.webCard:hover .cardHead, .webCard:hover .cardSubHead {
    color: white;
}

/* =========================================
   LOGIN & SIGNUP PAGES
   ========================================= */
.auth-wrapper { min-height: calc(100vh - var(--headerHeight, 70px) - 40px); display: flex; align-items: center; justify-content: center; padding: 20px; background-color: var(--color-bg-main, #f4f7f9); }
.auth-container { background: #ffffff; width: 100%; max-width: 420px; padding: 40px 30px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); border-top: 5px solid var(--color-primary, #173c68); }
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-header h2 { color: var(--color-primary, #173c68); font-size: 26px; margin-bottom: 8px; font-weight: 700; }
.auth-header p { color: #64748b; font-size: 14px; }
.auth-alert { padding: 12px; border-radius: 6px; margin-bottom: 20px; font-size: 14px; font-weight: 600; text-align: center; }
.auth-alert.error { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.auth-alert.success { background: #d1fae5; color: #047857; border: 1px solid #6ee7b7; }
.auth-input-group { margin-bottom: 20px; text-align: left; }
.auth-input-group label { display: block; margin-bottom: 8px; color: #334155; font-weight: 600; font-size: 14px; }
.auth-input-group input { width: 100%; padding: 14px 15px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 15px; transition: all 0.3s ease; box-sizing: border-box; background: #f8fafc; color: #0f172a; }
.auth-input-group input:focus { border-color: var(--color-primary, #173c68); background: #ffffff; outline: none; box-shadow: 0 0 0 4px rgba(23, 60, 104, 0.1); }
.auth-actions { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 25px; }
.auth-remember { display: flex; align-items: center; gap: 8px; color: #475569; cursor: pointer; user-select: none; }
.auth-link { color: var(--color-primary, #173c68); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.auth-link:hover { color: var(--color-accent, #c5a26e); text-decoration: underline; }
.auth-btn { width: 100%; padding: 14px; background: var(--color-primary, #173c68); color: #ffffff; border: none; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; transition: background 0.3s, transform 0.1s; box-shadow: 0 4px 6px rgba(23, 60, 104, 0.2); margin-top: 10px; }
.auth-btn:hover { background: #0f294d; transform: translateY(-1px); }
.auth-btn:active { transform: translateY(1px); }
.auth-footer { text-align: center; margin-top: 25px; font-size: 14px; color: #64748b; }
.auth-footer a { color: var(--color-primary, #173c68); font-weight: 700; text-decoration: none; }
.auth-footer a:hover { color: var(--color-accent, #c5a26e); text-decoration: underline; }

/* =========================================
   RESPONSIVE BREAKPOINTS (STRICT MOBILE FIX)
   ========================================= */
@media (min-width: 851px) {
    /* Failsafe: Ensure mobile sidebar NEVER shows on desktop */
    .headerCover { display: none !important; }
}

@media (max-width: 850px) {
    .box { display: flex !important; } 
    .header { padding: 0 15px; }
    .main-container { padding: 15px; }
    
    /* CRITICAL FIX: Hide the logged-in desktop info, but keep the standard logged-out rtHead visible */
    .desktop-only, .midHead {
        display: none !important; 
    }
    
    /* Let the logo take up the empty space so the menu icon aligns right */
    .ltHead {
        flex: 1;
    }
}