/* Custom styles for Construction Management System */

body {
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.table-responsive {
    margin-top: 20px;
}

.btn-custom {
    margin-right: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.alert {
    margin-top: 20px;
}

.footer {
    margin-top: 50px;
    padding: 20px 0;
    background-color: #343a40;
    color: white;
    text-align: center;
}

/* Modern Dashboard Styles */
.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.border-left-danger {
    border-left: 0.25rem solid #e74a3b !important;
}

.border-left-secondary {
    border-left: 0.25rem solid #858796 !important;
}

.border-left-dark {
    border-left: 0.25rem solid #5a5c69 !important;
}

.text-xs {
    font-size: 0.7rem;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.shadow {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.h-100 {
    height: 100% !important;
}

/* Common Action Dropdown Styles */
.action-dropdown {
    position: relative;
    display: inline-block;
}
.action-dropdown-toggle {
    background: none;
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}
.action-dropdown-toggle:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}
.action-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1000;
    min-width: 160px;
    padding: 8px 0;
    margin: 2px 0 0;
    font-size: 14px;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 6px;
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
}
.action-dropdown-menu.show {
    display: block;
}
.action-dropdown-item {
    display: block;
    width: 100%;
    padding: 6px 16px;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}
.action-dropdown-item:hover {
    color: #1e2125;
    background-color: #e9ecef;
}
.action-dropdown-item.text-danger {
    color: #dc3545 !important;
}
.action-dropdown-item.text-danger:hover {
    color: #a71d2a !important;
    background-color: #f8d7da;
}
.action-dropdown-divider {
    height: 0;
    margin: 8px 0;
    overflow: hidden;
    border-top: 1px solid rgba(0,0,0,.15);
}

.no-gutters {
    margin-right: 0;
    margin-left: 0;
}

.no-gutters > .col,
.no-gutters > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
}

.avatar {
    position: relative;
    display: inline-block;
    width: 3rem;
    height: 3rem;
}

.avatar-sm {
    width: 2.25rem !important;
    height: 2.25rem !important;
}

.avatar-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #6c757d;
    color: #fff;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
}

.rounded-circle {
    border-radius: 50% !important;
}

.action-card {
    transition: all 0.3s ease;
}

.action-card:hover {
    background-color: #f8f9fc;
}

/* Colorful Dashboard Cards */
.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}
.border-left-primary .card-body {
    background: linear-gradient(135deg, #f8f9fc 0%, #e3e6f0 100%);
}
.border-left-primary .text-primary {
    color: #4e73df !important;
}
.border-left-primary .fa-building {
    color: #4e73df !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}
.border-left-success .card-body {
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
}
.border-left-success .text-success {
    color: #059669 !important;
}
.border-left-success .fa-users {
    color: #10b981 !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}
.border-left-info .card-body {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}
.border-left-info .text-info {
    color: #0891b2 !important;
}
.border-left-info .fa-file-invoice {
    color: #06b6d4 !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}
.border-left-warning .card-body {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}
.border-left-warning .text-warning {
    color: #d97706 !important;
}
.border-left-warning .fa-chart-line {
    color: #f59e0b !important;
}

.border-left-secondary {
    border-left: 0.25rem solid #858796 !important;
}
.border-left-secondary .card-body {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}
.border-left-secondary .text-secondary {
    color: #6b7280 !important;
}
.border-left-secondary .fa-user-tie {
    color: #8b5cf6 !important;
}

.border-left-danger {
    border-left: 0.25rem solid #e74a3b !important;
}
.border-left-danger .card-body {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}
.border-left-danger .text-danger {
    color: #dc2626 !important;
}
.border-left-danger .fa-credit-card {
    color: #ef4444 !important;
}

.border-left-dark {
    border-left: 0.25rem solid #5a5c69 !important;
}
.border-left-dark .card-body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}
.border-left-dark .text-dark {
    color: #1e293b !important;
}
.border-left-dark .fa-tools {
    color: #6366f1 !important;
}

.dashboard-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.dashboard-card .card-body {
    padding: 1.5rem;
}

.dashboard-card .text-xs {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.dashboard-card .h5 {
    font-size: 1.5rem;
    font-weight: 700;
}

.dashboard-card .fa-2x {
    font-size: 2rem;
    opacity: 0.8;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dashboard-card {
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Form field highlighting */
.form-control.has-value,
.form-select.has-value {
    background-color: #d4edda !important; /* light green for entered fields */
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    background-color: #fff3cd !important; /* light yellow for current field */
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25) !important;
}

@media (max-width: 768px) {
    .dashboard-card {
        height: auto;
        margin-bottom: 20px;
    }
}