/* Construction-themed styling for Assistant-PM */

:root {
    /* Construction color palette */
    --construction-orange: #FF6B35;
    --construction-yellow: #F7931E;
    --construction-blue: #2E86AB;
    --construction-gray: #424242;
    --construction-light-gray: #F5F5F5;
    --concrete-gray: #6C757D;
    --safety-green: #00A651;
    --warning-yellow: #FFD700;
    --steel-blue: #4682B4;
}

/* Navigation styling */
.navbar {
    background: linear-gradient(135deg, var(--construction-orange), var(--construction-yellow)) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700 !important;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.navbar-brand:hover {
    color: #fff !important;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
}

/* Hero section with construction imagery */
.jumbotron {
    background: linear-gradient(135deg, var(--construction-blue), var(--steel-blue)) !important;
    position: relative;
    overflow: hidden;
}

.jumbotron::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

/* Construction-themed cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: var(--bs-dark);
    border-left: 4px solid var(--construction-orange);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* Feature cards with construction icons */
.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: var(--bs-dark);
    border: 2px solid var(--construction-gray);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--construction-orange);
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--construction-orange), var(--construction-yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

/* Construction-themed buttons */
.btn-construction {
    background: linear-gradient(135deg, var(--construction-orange), var(--construction-yellow));
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

.btn-construction:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.4);
    color: white;
}

.btn-outline-construction {
    border: 2px solid var(--construction-orange);
    color: var(--construction-orange);
    background: transparent;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-construction:hover {
    background: var(--construction-orange);
    color: white;
    transform: translateY(-2px);
}

/* Status badges with construction colors */
.badge-construction {
    background: var(--construction-orange);
    color: white;
}

.badge-safety {
    background: var(--safety-green);
    color: white;
}

.badge-warning {
    background: var(--warning-yellow);
    color: var(--construction-gray);
}

.badge-concrete {
    background: var(--concrete-gray);
    color: white;
}

/* Progress bars with construction styling */
.progress {
    height: 8px;
    border-radius: 4px;
    background: var(--construction-light-gray);
}

.progress-bar {
    background: linear-gradient(90deg, var(--construction-orange), var(--construction-yellow));
    border-radius: 4px;
}

/* Table styling for invoices/projects */
.table-construction {
    background: var(--bs-dark);
    border-radius: 8px;
    overflow: hidden;
}

.table-construction th {
    background: var(--construction-gray);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table-construction td {
    border-color: var(--construction-light-gray);
    padding: 1rem;
}

/* Form styling */
.form-control:focus {
    border-color: var(--construction-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.form-select:focus {
    border-color: var(--construction-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* Pricing cards with construction theme */
.pricing-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bs-dark);
    border: 2px solid var(--construction-gray);
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--construction-orange);
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.pricing-header {
    background: linear-gradient(135deg, var(--construction-orange), var(--construction-yellow));
    color: white;
    padding: 2rem;
    text-align: center;
}

/* Dashboard stats cards */
.stats-card {
    background: var(--bs-dark);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--construction-orange);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
}

.stats-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--construction-orange), var(--construction-yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Mobile responsiveness for construction theme */
@media (max-width: 768px) {
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .stats-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Loading spinner with construction colors */
.spinner-construction {
    border: 4px solid rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--construction-orange);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert styling with construction theme */
.alert-construction {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid var(--construction-orange);
    color: var(--construction-orange);
    border-radius: 8px;
}

.alert-safety {
    background: rgba(0, 166, 81, 0.1);
    border: 1px solid var(--safety-green);
    color: var(--safety-green);
    border-radius: 8px;
}