/* ===== Global Styles ===== */
:root {
    --primary-color: #0057a8;
    /* Saylani Blue */
    --secondary-color: #66b032;
    /* Saylani Green */
    --light-gray: #f8f9fa;
    --dark-text: #333333;
    --muted-text: #6c757d;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

/* ===== Full Screen Layout Structure ===== */
.container-fluid {
    height: 100vh;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.row.h-100 {
    height: 100vh;
}

/* ===== LEFT COLUMN: LOGO AND TEXT ===== */
.left-column {
    background: white;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 50px 80px;
    height: 100vh;
}

.branding {
    margin-bottom: 1rem;
}

.logo-img {
    width: 300px;
    margin-top: -50px;
    /* Adjusted slightly */
}

.main-heading {
    font-size: 3rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    line-height: 1.6;
    max-width: 450px;
}

/* Wave Shapes (SVG) */
.wave-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    z-index: 0;
    opacity: 0.8;
    pointer-events: none;
}

.wave-shape svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===== RIGHT COLUMN: FORM ===== */
.right-column {
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: relative;
}

/* Login/Signup Card */
.login-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark-text);
    text-align: left;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted-text);
}

.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #dee2e6;
    background-color: #fff;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 87, 168, 0.1);
}

/* Role Toggle */
.role-selector {
    background: #f1f3f5;
    padding: 4px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 20px;
}

.btn-check:checked+.btn-outline-secondary {
    background-color: white;
    color: black;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-color: transparent;
    font-weight: 600;
}

.role-btn {
    border: none;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 6px;
    flex: 1;
    text-align: center;
    color: var(--muted-text);
    transition: all 0.2s ease;
}

.role-btn:hover {
    background-color: #e9ecef;
    color: var(--dark-text);
}

/* Buttons */
.btn-login,
.btn-saylani-green {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.1s, background-color 0.2s;
    width: 100%;
}

.btn-saylani-green {
    background-color: var(--secondary-color);
}

.btn-login:hover {
    background-color: #004485;
}

.btn-saylani-green:hover {
    background-color: #559e2a;
}

.btn-login:active,
.btn-saylani-green:active {
    transform: scale(0.98);
}

.btn-google {
    background: white;
    border: 1px solid #dee2e6;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.btn-google:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Links */
.text-decoration-none {
    text-decoration: none !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Responsive */
@media (max-width: 991.98px) {
    .left-column {
        height: auto;
        min-height: 40vh;
        padding: 40px 30px;
        align-items: center;
        text-align: center;
    }

    .wave-shape {
        height: 150px;
    }

    .logo-img {
        margin: 0 auto;
        width: 160px;
    }

    .right-column {
        height: auto;
        min-height: 60vh;
        padding: 40px 20px;
    }

    .login-card {
        box-shadow: none;
        padding: 20px 0;
        max-width: 100%;
    }

    .form-title {
        text-align: center;
    }

    .container-fluid,
    .row.h-100 {
        height: auto;
        overflow-y: auto;
    }
}

/* ===== DASHBOARD & SIDEBAR STYLES (Green Clone) ===== */

/* Wrapper */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* Sidebar */
#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #ffffff;
    color: #333;
    transition: all 0.3s;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}

#sidebar .sidebar-header {
    padding: 0 20px 20px 20px;
    background: #fff;
}

#sidebar .sidebar-header img {
    max-width: 150px;
}

/* Sidebar Components */
#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li {
    padding: 5px 10px;
    /* Spacing for the rounded active background */
}

#sidebar ul li a {
    padding: 12px 20px;
    font-size: 1rem;
    display: block;
    color: #555;
    text-decoration: none !important;
    transition: all 0.3s;
    border-radius: 8px;
    /* Rounded corners for active state */
    display: flex;
    align-items: center;
    font-weight: 500;
}

#sidebar ul li a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

#sidebar ul li a:hover {
    color: #198754;
    /* Green hover */
    background: #f0fdf4;
    /* Very light green */
}

/* Active State - Green Block matching image */
#sidebar ul li a.active {
    background-color: #198754;
    /* Saylani Green approx */
    color: white;
    box-shadow: 0 4px 6px rgba(25, 135, 84, 0.2);
}

/* Content Area */
#content {
    width: 100%;
    padding: 30px;
    min-height: 100vh;
    margin-left: 250px;
    background-color: #f8f9fa;
    /* Light gray bg */
}

/* Headings */
h2.fw-bold.text-dark {
    font-size: 1.5rem;
    color: #333 !important;
    margin-bottom: 5px;
}

.text-muted {
    font-size: 0.9rem;
}

/* Stats Cards */
.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    /* Very subtle shadow */
    height: 100%;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* Circular icons */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 15px;
}

/* Icon Colors matching image */
.stat-icon.blue-bg {
    background: #e8f0fe;
    color: #1a73e8;
}

.stat-icon.red-bg {
    background: #fce8e6;
    color: #ea4335;
}

.stat-icon.green-bg {
    background: #e6f4ea;
    color: #1e8e3e;
}

.stat-icon.orange-bg {
    background: #fef7e0;
    color: #fbbc04;
}

.stat-info h5 {
    font-size: 0.85rem;
    color: #5f6368;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-info h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #202124;
    margin: 0;
}

/* Recent Activity Card */
.activity-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f0f0;
}

.activity-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: 20px;
}

.activity-item {
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    align-items: center;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    /* Square with radius */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
    color: white;
}

/* Specific icon bgs from image */
.bg-green {
    background-color: #198754;
}

.bg-blue {
    background-color: #0d6efd;
}

/* Or dark blue */
.bg-dark-blue {
    background-color: #34495e;
}

.activity-details h6 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.activity-details small {
    display: none;
}

/* Hide small text if not in image, or style it */

/* Status Badges */
.status-badge {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.status-badge.pending {
    background: #fff8e1;
    color: #f9a825;
}

/* Yellow */
.status-badge.resolved {
    background: #e6f4ea;
    color: #1e8e3e;
}

/* Green */
.status-badge.matching {
    background: #f3e5f5;
    color: #9c27b0;
}

/* Purple */

/* Action Buttons Container */
.d-flex.gap-3.mt-4 {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    margin-top: 20px !important;
}

/* Action Buttons */
.action-btn-green {
    background-color: #198754;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    transition: background 0.2s;
}

.action-btn-green:hover {
    background-color: #157347;
    color: white;
}

.action-btn-white {
    background-color: white;
    color: #333;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dee2e6;
    transition: background 0.2s;
}

.action-btn-white:hover {
    background-color: #f8f9fa;
    color: #333;
}

.action-btn-white i {
    font-size: 1.1rem;
}


/* Responsive Sidebar */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }

    #sidebar.active {
        margin-left: 0;
    }

    /* ===== NOTIFICATIONS CLONE STYLES ===== */

    .notification-clone-card {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        max-width: 400px;
        /* Constrain width to look like the mobile view image if desired, or let it fill */
        margin: 0 auto;
        /* Center it */
    }

    /* Dark Header from image */
    .notif-header {
        background-color: #343a40;
        /* Dark grey/black */
        color: white;
        padding: 15px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .notif-header h5 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .notif-header .header-icon {
        background: white;
        color: #333;
        width: 28px;
        height: 28px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }

    .notif-check-icon {
        font-size: 1.2rem;
        color: #adb5bd;
        cursor: pointer;
    }

    /* List Styles */
    .notif-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .notif-item {
        border-bottom: 1px solid #f0f0f0;
        padding: 15px 20px;
        display: flex;
        align-items: flex-start;
        gap: 15px;
        transition: background 0.2s;
    }

    .notif-item:hover {
        background-color: #f8f9fa;
    }

    .notif-item:last-child {
        border-bottom: none;
    }

    /* Icons */
    .notif-icon-circle {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.1rem;
    }

    /* Specific Colors */
    .notif-bg-gold {
        background-color: #d8a554;
    }

    /* Sharper gold/brown */
    .notif-bg-indigo {
        background-color: #5569a9;
    }

    /* Sharper indigo */
    .notif-bg-green {
        background-color: #58b660;
    }

    /* Sharper green */
    .notif-bg-blue {
        background-color: #4b8af0;
    }

    /* Sharper blue */

    /* Content Text */
    .notif-content {
        flex-grow: 1;
    }

    .notif-content h6 {
        margin: 0 0 5px 0;
        font-size: 0.9rem;
        font-weight: 700;
        color: #333;
        line-height: 1.3;
    }

    .notif-content small {
        color: #999;
        font-size: 0.75rem;
        font-weight: 500;
    }


}

.complaint-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.complaint-header h4 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.complaint-header i {
    color: #198754;
    /* Green icon */
    font-size: 1.2rem;
}

/* Form Styles */
.form-label-clone {
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 8px;
    display: block;
}

.form-control-clone {
    width: 100%;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    font-size: 0.95rem;
    color: #333;
    transition: border-color 0.2s;
    background-color: #fff;
}

.form-control-clone:focus {
    outline: none;
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
}

textarea.form-control-clone {
    resize: vertical;
    min-height: 80px;
}

/* Urgency Selector */
.urgency-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.urgency-label {
    font-weight: 600;
    color: #198754;
    /* Green Text */
    display: flex;
    align-items: center;
    gap: 5px;
}

.urgency-options {
    display: flex;
    gap: 15px;
}

.urgency-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

.urgency-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot-low {
    background-color: #198754;
}

.dot-medium {
    background-color: #ffc107;
}

.dot-high {
    background-color: #dc3545;
}

/* Submit Button */
.btn-submit-complaint {
    background-color: #0d6efd;
    /* Royal Blue */
    color: white;
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    margin-top: 20px;
    transition: background 0.2s;
}

.btn-submit-complaint:hover {
    background-color: #0b5ed7;
    color: white;
}

/* My Complaints Table */
.my-complaints-section {
    margin-top: 40px;
}

.table-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.table-header-custom h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
}

.table-header-meta {
    font-size: 0.85rem;
    color: #666;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.custom-table th {
    background-color: #f8f9fa;
    text-align: left;
    padding: 12px 20px;
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    border-bottom: 2px solid #eee;
}

.custom-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    color: #333;
    vertical-align: middle;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.action-dots {
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
}