/* Global Styles */
:root {
    --botswana-blue: #75AADB;
    --botswana-black: #000000;
    --botswana-white: #FFFFFF;
    --accent-blue: #4A89DC;
    --dark-blue: #2C3E50;
    --light-gray: #F5F7FA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--botswana-black);
    background-color: var(--light-gray);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.btn {
    display: inline-block;
    background-color: var(--botswana-blue);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--accent-blue);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--botswana-blue);
    color: var(--botswana-blue);
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    margin-left: 10px;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--botswana-blue);
    color: white;
}

/* Navigation */
.navbar {
    background-color: var(--botswana-blue);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.logo-icon {
    background-color: white;
    color: var(--botswana-blue);
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--botswana-blue) 0%, var(--accent-blue) 100%);
    color: white;
    padding: 60px 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Ministries Section */
.ministries {
    padding: 60px 0;
    background-color: white;
}

.ministries h2 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--dark-blue);
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

.ministry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.ministry-card {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ministry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.ministry-card h3 {
    color: var(--botswana-blue);
    margin-bottom: 10px;
}

.ministry-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Data Insights Section */
.data-insights {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.chart-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.data-tools {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.tool-card {
    flex: 1;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.tool-card h3 {
    color: var(--botswana-blue);
    margin-bottom: 10px;
}

.tool-card p {
    color: #666;
    margin-bottom: 15px;
}

/* Chat Section */
.chat-section {
    padding: 60px 0;
    background-color: white;
}

.chat-container {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    height: 500px;
}

.chat-sidebar {
    width: 250px;
    background-color: var(--light-gray);
    padding: 20px;
    border-right: 1px solid #ddd;
}

.chat-topics {
    list-style: none;
    margin-top: 20px;
}

.chat-topics li {
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 5px;
}

.chat-topics li:hover {
    background-color: #e0e0e0;
}

.chat-topics li.active {
    background-color: var(--botswana-blue);
    color: white;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #ddd;
    display: flex;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: white;
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .data-tools {
        flex-direction: column;
    }
    
    .chat-container {
        flex-direction: column;
        height: auto;
    }
    
    .chat-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
}

/* ===== LOGIN PAGE ===== */

/* Header */
.login-header {
    height: 70px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
}

.header-logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: #4A89DC;
}

.header-logo .logo-span {
    font-size: 1.4rem;
    font-weight: 900;
}

.back-home {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #d0d5ff;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #023e8a, #0077b6, #00b4d8);
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    
}

/* Container */
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 1rem;
    margin-top: 0%;
}

/* Card */
.login-card {
    background: rgba(255, 255, 255, 0.92);
    padding: 2.2rem 2rem;
    border-radius: 1.2rem;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 1px 4px rgba(0, 0, 0, 0.08);
    text-align: center;
    animation: fadeInUp 0.6s ease;
}

/* Heading */
.login-card h1 {
    color: #023e8a;
    margin-bottom: 1.5rem;
    font-size: 1.9rem;
    font-weight: 600;
}

/* Form groups */
.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #444;
}

/* Inputs */
.form-group input {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid #ccc;
    border-radius: 0.6rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: #aaa;
}

.form-group input:focus {
    outline: none;
    border-color: #0077b6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
}

/* Button */
.login-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.8rem;
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    color: #fff;
    border: none;
    border-radius: 0.6rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Signup link */
.signup-link {
    margin-top: 1.2rem;
    font-size: 0.9rem;
    color: #555;
}

.signup-link a {
    color: #0077b6;
    font-weight: 500;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile tweaks */
@media (max-width: 480px) {
    .login-card {
        padding: 1.8rem 1.5rem;
    }

    .login-card h1 {
        font-size: 1.6rem;
    }
}

/* ===== REGISTER PAGE ===== */

.register-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #023e8a, #0077b6, #00b4d8);
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

/* Container */
.register-container {
    width: 100%;
    max-width: 460px;
    padding: 1rem;
}

/* Card */
.register-card {
    background: rgba(255, 255, 255, 0.92);
    padding: 2.2rem 2rem;
    border-radius: 1.2rem;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 1px 4px rgba(0, 0, 0, 0.08);
    text-align: center;
    animation: fadeInUp 0.6s ease;
}

/* Heading */
.register-card h1 {
    color: #023e8a;
    margin-bottom: 1.5rem;
    font-size: 1.9rem;
    font-weight: 600;
}

/* Form groups */
.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #444;
}

/* Inputs & Select */
.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid #ccc;
    border-radius: 0.6rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff;
}

.form-group input::placeholder {
    color: #aaa;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0077b6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
}

/* Button */
button {
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.8rem;
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    color: #fff;
    border: none;
    border-radius: 0.6rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
}

button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Login link */
.login-link {
    margin-top: 1.2rem;
    font-size: 0.9rem;
    color: #555;
}

.login-link a {
    color: #0077b6;
    font-weight: 500;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile tweaks */
@media (max-width: 480px) {
    .register-card {
        padding: 1.8rem 1.5rem;
    }

    .register-card h1 {
        font-size: 1.6rem;
    }
}

/* ===== DASHBOARD ===== */
.dashboard {
    padding: 2rem 0;
    background: #f7f7f7;
    min-height: 80vh;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.card h3 {
    color: #0077b6;
}

/* Role selector styling */
select {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    background-color: white;
    font-size: 1rem;
}

.profile-icon img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    vertical-align: middle;
}

.profile-icon img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

