/* /members/includes/style.css */

/* 1. Base Elements */
body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
    background-color: #f4f4f4;
    color: #333333;
    margin: 0;
    padding: 20px;
}

h1, h2, h3 { 
    color: #222222; 
}

/* 2. Layout Containers */
.container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.content-panel {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f4f4f4;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.panel-header h2 {
    margin: 0;
    color: #333333;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #cccccc;
}

/* 3. Forms & Inputs */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input[type="text"], 
input[type="email"], 
input[type="password"],
input[type="number"], 
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* 4. Buttons */
button {
    background-color: #0055a4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
    font-size: 16px;
}

button:hover { 
    background-color: #003d7a; 
}

.btn-primary {
    background-color: #0056b3;
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #004494;
}

.btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* 5. Tables */
table, .data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td, .data-table th, .data-table td {
    border: 1px solid #dddddd;
    padding: 10px 15px;
    text-align: left;
}

th, .data-table th { 
    background-color: #f2f2f2;
    color: #333333;
    font-weight: bold;
}

.data-table tr:hover {
    background-color: #f9f9f9;
}

.data-table a {
    color: #0056b3;
    text-decoration: none;
}

.data-table a:hover {
    text-decoration: underline;
}

/* 6. Notifications & Alerts */
.alert {
    padding: 15px;
    border-radius: 4px;
    background-color: #e7f3fe;
    border: 1px solid #b3d7ff;
    border-left: 6px solid #2196F3;
    margin-bottom: 20px;
}

.success, .alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-left: 6px solid #4CAF50;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-left: 6px solid #ffc107;
}

/* 8. Login Page Styles */
.login-page {
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.login-container {
    background: #ffffff;
    max-width: 400px;
    width: 100%;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-top: 5px solid #ff8c00; /* Imperial Games Orange */
    text-align: center;
    box-sizing: border-box;
}

.login-logo {
    max-width: 140px;
    height: auto;
    margin: 0 auto 20px auto;
    display: block;
}

.login-container h1 {
    color: #111111;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 25px;
}

.login-container .form-group {
    text-align: left;
}

.btn-login {
    width: 100%;
    background-color: #2eb8e6; /* Imperial Games Teal */
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 10px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
}

.btn-login:hover {
    background-color: #1a9bc6;
}


/* 9. Global Header & Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #111111;
    padding: 15px 30px;
    color: #ffffff;
    border-bottom: 4px solid #ff8c00;
}

.nav-brand a {
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #dddddd;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #ff8c00;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.btn-logout {
    background-color: #d9534f;
    color: #ffffff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.btn-logout:hover {
    background-color: #c9302c;
}

/* 10. Portal Grid & Large Cards */
.dashboard-body {
    background-color: #f4f4f4;
    margin: 0;
}

.dashboard-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.dashboard-welcome {
    margin-bottom: 30px;
    border-bottom: 2px solid #dddddd;
    padding-bottom: 15px;
}

.dashboard-welcome h1 {
    margin-top: 0;
    margin-bottom: 5px;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.portal-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    text-decoration: none;
    color: #333333;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
}

.portal-card h2 {
    margin: 0 0 10px 0;
    color: #111111;
    font-size: 22px;
}

.portal-card p {
    margin: 0;
    color: #666666;
    font-size: 15px;
}

.portal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: #ff8c00;
}

/* 11. Mobile Navigation & Card Icons */
.main-nav {
    position: relative; /* Ensures the dropdown anchors correctly */
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
}

.mobile-only {
    display: none;
}

.portal-card i {
    font-size: 40px;
    color: #2eb8e6;
    margin-bottom: 15px;
    transition: color 0.2s;
}

.portal-card:hover i {
    color: #ff8c00;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-user {
        display: none;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #111111;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        border-bottom: 4px solid #ff8c00;
        z-index: 100;
    }

    .nav-links.nav-active {
        max-height: 300px;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-top: 1px solid #333333;
    }

    .nav-links li a {
        display: block;
        padding: 15px;
        font-size: 16px;
    }

    .mobile-only {
        display: block;
    }

    /* Thinner, rectangular mobile portal cards */
    .portal-card {
        min-height: 90px;
        padding: 20px 15px;
        justify-content: center;
    }

    .portal-card i {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .portal-card h2 {
        font-size: 18px;
    }

    .portal-card p {
        font-size: 13px;
    }
}

/* 12. Import Error Log */
.error-log-box h3 {
    margin-top: 0;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 10px;
}

.error-log-list {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    max-height: 250px;
    overflow-y: auto;
}

.error-log-list li {
    margin-bottom: 5px;
}



.calendar-event-bar {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 4px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-weight: 600;
}

.event-logo-container {
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.event-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.event-title {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}