/* Reset defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", Arial, sans-serif;
}

/* Center page */
body {
    background: #f4f7fb;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main container */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

/* Login box */
.login-box {
    background: #ffffff;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

/* Title & subtitle */
.login-box h2 {
    font-size: 26px;
    color: #1a365d;
    margin-bottom: 5px;
}

.subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Input groups */
.input-group {
    text-align: left;
    margin-bottom: 18px;
}

.input-group label {
    font-size: 14px;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    transition: border 0.2s ease;
}

.input-group input:focus {
    border-color: #2563eb;
    outline: none;
}

/* Login button */
.login-btn {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: #ffffff;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s ease;
    margin-top: 10px;
}

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

/* Styles for the dashboard */

/* Variables for easy color adjustments */
:root {
    --primary-color: #20304C; /* Dark blue for sidebar */
    --secondary-color: #3B82F6; /* Blue for the main button */
    --background-color: #F8F9FA; /* Light gray background */
    --card-background: #FFFFFF; /* White for cards/main area */
    --text-color: #4B5563; /* Darker gray for general text */
    --heading-color: #1F2937; /* Darkest gray for headings */
    --border-color: #E5E7EB; /* Light border color */
    --approved-color: #34D399; /* Green for Approved status */
    --progress-color: #FBBF24; /* Yellow for In Progress status */
    --upcoming-color: #60A5FA; /* Light blue for Upcoming status */
}

/* Base Styles and Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-color);
    line-height: 1.6;
}

/* --- Layout: Dashboard Container --- */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    border-radius: 12px; /* Overall rounded corners */
    overflow: hidden; /* Important for the look */
    max-width: 1400px;
    margin: 30px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* --- Sidebar --- */
.sidebar {
    width: 250px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px 0;
    flex-shrink: 0;
}

.sidebar-logo {
    padding: 0 20px 40px;
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: #fff; /* Placeholder background color */
    display: block;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
    opacity: 0.7;
}

.sidebar-nav li i {
    margin-right: 10px;
}

.sidebar-nav li.active {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
    border-left: 4px solid #fff;
    padding-left: 16px;
}

/* --- Main Content Area --- */
.main-content {
    flex-grow: 1;
    background-color: var(--card-background);
    padding: 30px;
}

.dashboard-header h1 {
    font-size: 28px;
    color: var(--heading-color);
    margin-bottom: 20px;
    font-weight: 600;
}

/* --- Search and Filters --- */
.filter-section {
    margin-bottom: 30px;
}

.search-bar {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 350px;
    margin-bottom: 25px;
}

.search-bar i {
    color: var(--text-color);
    margin-right: 10px;
}

.search-bar input {
    border: none;
    outline: none;
    font-size: 16px;
    flex-grow: 1;
}

.filter-controls {
    display: flex;
    gap: 15px;
}

.filter-dropdown {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 15px;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.filter-dropdown i {
    margin-left: 8px;
    font-size: 10px;
}

/* --- Content Grid (Table + Analytics) --- */
.content-grid {
    display: grid;
    grid-template-columns: 3fr 1fr; /* Adjust column width ratio */
    gap: 30px;
}

/* --- Projects Table --- */
.projects-table-container h2 {
    font-size: 20px;
    color: var(--heading-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.projects-table th, .projects-table td {
    padding: 15px 0;
    text-align: left;
}

.projects-table th {
    color: var(--text-color);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

.projects-table td {
    color: var(--heading-color);
    border-bottom: 1px solid #F3F4F6; /* Lighter border for rows */
}

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
}

.status-approved {
    background-color: rgba(52, 211, 153, 0.15); /* Green with opacity */
    color: var(--approved-color);
}

.status-progress {
    background-color: rgba(251, 191, 36, 0.15); /* Yellow with opacity */
    color: var(--progress-color);
}

.status-upcoming {
    background-color: rgba(96, 165, 250, 0.15); /* Blue with opacity */
    color: var(--upcoming-color);
}

/* --- Analytics Panel --- */
.analytics-panel {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.analytics-panel h3 {
    font-size: 18px;
    color: var(--heading-color);
    font-weight: 600;
    margin-bottom: 25px;
}

.analytics-stat {
    margin-bottom: 25px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.stat-value strong {
    font-size: 28px;
    color: var(--heading-color);
    font-weight: 700;
}

/* Progress Bar */
.analytics-progress {
    margin-bottom: 30px;
}

.progress-bar-container {
    height: 8px;
    background-color: #E5E7EB;
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--secondary-color);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-color);
    margin-top: 5px;
}

/* Breakdown Stats */
.analytics-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.analytics-breakdown p {
    font-size: 14px;
    color: var(--text-color);
}

.analytics-breakdown strong {
    font-size: 16px;
    color: var(--heading-color);
    font-weight: 600;
}

/* Upload Button */
.upload-button {
    width: 100%;
    padding: 12px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.upload-button:hover {
    background-color: #2563EB; /* Darker blue on hover */
}

/* Add this to your styles.css */

.sortable-header {
    position: relative;
    padding-right: 20px; /* Make space for the icon */
}

/* Optional: Add a simple sorting icon (requires you to add the icon in JS/HTML) */
/* Since we are not adding an icon to the header, this CSS is just for styling the click state */
.sortable-header:hover {
    color: var(--secondary-color); /* Change color on hover to indicate clickability */
}

/* LOGOIT STYLE */

.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* pushes logout button to bottom */
    height: 100vh; /* full height */
    background: #20304C;
    padding: 20px;
}

#logoutBtn {
    margin-top: auto; /* ensures it stays at the bottom */
    padding: 12px 20px;
    width: 100%;
    background: #FF4B4B;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
}

#logoutBtn:hover {
    background: #D93C3C;
}



/* WIDGET STYLES */

/* Container */
.projects-table-container {
    /* padding: 20px 25px; */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* max-width: 1000px; */
    margin: 0 auto;
    overflow-x: auto;
    width: 80%;
}

/* Table */
.projects-table {
    width: 100%;
    border-collapse: collapse;
}

.projects-table th,
.projects-table td {
    padding: 12px 15px;
    text-align: left;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.projects-table th {
    background-color: #f4f6f8;
    font-weight: 600;
    color: #20304C;
}

/* Row hover effect */
.projects-table tbody tr:hover {
    background-color: #f0f4f8;
}

/* Status badges */
.status-badge {
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    display: inline-block;
    text-align: center;
}

.status-approved {
    background-color: #4CAF50; /* Green */
}

.status-progress {
    background-color: #FFC107; /* Amber */
}

.status-upcoming {
    background-color: #2196F3; /* Blue */
}

/* Responsive */
@media (max-width: 768px) {
    .projects-table-container {
        padding: 15px;
    }

    .projects-table th,
    .projects-table td {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* Title */
.custom-dashboard-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    padding: 14px 0;
    color: #1f2937;
    font-family: Arial, sans-serif;
}


/* Button */
.custom-inline-btn {
    display: block;
    width: fit-content;
    background-color: #cb070c;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 20px auto; /* centers + adds spacing */
    transition: background-color 0.3s ease;
}

/* Hover effect */
.custom-inline-btn:hover {
    background-color: #1e1f4f; /* darker hover color */
}

