/* 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;
}

.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;
    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;
    }
}