html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}
/* Center login container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #2a9d8f, #264653);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Login card */
.login-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
    width: 320px;
}

    /* Heading */
    .login-card h2 {
        color: #2a9d8f;
        margin-bottom: 10px;
        font-size: 28px;
    }

    /* Paragraph */
    .login-card p {
        color: #555;
        margin-bottom: 30px;
        font-size: 14px;
    }

    /* Form inputs */
    .login-card .form-group {
        margin-bottom: 20px;
        text-align: left;
    }

    .login-card input[type="text"],
    .login-card input[type="password"] {
        width: 100%;
        padding: 10px 12px;
        border-radius: 6px;
        border: 1px solid #ccc;
        outline: none;
        font-size: 14px;
    }

    .login-card input:focus {
        border-color: #2a9d8f;
        box-shadow: 0 0 5px rgba(42, 157, 143, 0.5);
    }

/* Login button */
.btn-login {
    width: 100%;
    padding: 12px;
    background: #2a9d8f;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-login:hover {
        background: #21867a;
    }

.dashboard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2a9d8f;
    padding: 10px 20px;
    color: white;
}

    .dashboard-nav a {
        color: white;
        margin-left: 15px;
        text-decoration: none;
        font-weight: 500;
    }

        .dashboard-nav a:hover {
            text-decoration: underline;
        }

.dashboard-main {
    padding: 20px;
}

.dashboard-welcome {
    margin-bottom: 30px;
}

    .dashboard-welcome h1 {
        color: #264653;
        font-size: 28px;
    }

.dashboard-container {
    padding: 20px;
}

/* Welcome Section */
.dashboard-welcome h1 {
    color: #264653;
    font-size: 28px;
}

.dashboard-welcome p {
    color: #555;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Summary Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

    .card h3 {
        color: #2a9d8f;
        margin-bottom: 10px;
    }

    .card p {
        font-size: 24px;
        font-weight: bold;
        color: #333;
    }

/* Charts Section */
.dashboard-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Recent Activities */
.recent-activities {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

    .recent-activities ul {
        list-style: none;
        padding-left: 0;
    }

    .recent-activities li {
        padding: 8px 0;
        border-bottom: 1px solid #eee;
    }

/* Quick Actions */
.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.action-btn {
    background: #2a9d8f;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .action-btn:hover {
        background: #21867a;
    }

/* Responsive */
@media(max-width: 768px) {
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
}
/* Sidebar */
.sidebar {
    width: 220px;
    background: #2a9d8f;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    transition: all 0.3s ease;
    overflow-y: auto;
    color: white;
}

    .sidebar.collapsed {
        width: 60px;
    }

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
}

.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
}

    .sidebar-menu a:hover {
        background: #21867a;
    }

/* Main content shift */
.main-content {
    margin-left: 220px;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed + .main-content {
    margin-left: 60px;
}

/* Topbar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #264653;
    padding: 10px 20px;
    color: white;
}

.topbar-left button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.topbar-right {
    position: relative;
}

/* Notifications */
.notifications {
    position: relative;
    display: inline-block;
}

#notificationCount {
    background: #e76f51;
    border-radius: 50%;
    color: white;
    padding: 2px 6px;
    font-size: 12px;
    vertical-align: top;
    margin-right: 5px;
}

.notification-panel {
    display: none;
    position: absolute;
    right: 0;
    top: 25px;
    width: 250px;
    background: #ffffff;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
}

    .notification-panel.show {
        display: block;
    }

    .notification-panel ul {
        list-style: none;
        margin: 0;
        padding: 10px;
    }

    .notification-panel li {
        padding: 8px 5px;
        border-bottom: 1px solid #eee;
    }

        .notification-panel li:last-child {
            border-bottom: none;
        }

/* Responsive adjustments */
@media(max-width:768px) {
    .sidebar {
        left: -220px;
    }

        .sidebar.collapsed {
            left: 0;
        }

    .main-content {
        margin-left: 0;
    }
}

.insights-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.insights-table th, .insights-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.insights-table th {
    background: #2a9d8f;
    color: #fff;
}

.insights-table tr:hover {
    background: #f4f4f4;
}

.dashboard-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.filter-item label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

.filter-item select,
.filter-item input[type="month"] {
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.btn-filter {
    padding: 8px 15px;
    background: #2a9d8f;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-filter:hover {
        background: #21867a;
    }
.kanban-board {
    overflow-x: auto;
    padding-bottom: 20px;
}

    .kanban-board::-webkit-scrollbar {
        height: 8px;
    }

    .kanban-board::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

    .kanban-board::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

.task-card:hover {
    transform: translateY(-2px);
    transition: 0.2s;
    cursor: pointer;
}

.table td, .table th {
    vertical-align: top;
}

.task-card strong {
    font-size: 0.95rem;
}

.task-card ul li {
    font-size: 0.85rem;
}
.table td, .table th {
    vertical-align: top;
}

.stage-section h6 {
    font-weight: bold;
}

.milestone-column h5 {
    font-weight: bold;
}