/* Additional Custom Styles */

/* Loading Spinner */
.spinner-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    text-align: center;
}

.spinner-circle {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.spinner-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

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

/* Phase Badges */
.badge.bg-phase-1 { background: #007bff !important; }
.badge.bg-phase-2 { background: #17a2b8 !important; }
.badge.bg-phase-3 { background: #28a745 !important; }
.badge.bg-phase-4 { background: #ffc107 !important; color: #000; }
.badge.bg-phase-5 { background: #fd7e14 !important; }
.badge.bg-phase-6 { background: #6f42c1 !important; }

/* Process Steps */
.process-step {
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.step-icon {
    position: relative;
    display: inline-block;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--secondary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Announcement Cards */
.announcement-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.announcement-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.date-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.announcement-content {
    padding-right: 70px;
}

.announcement-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.announcement-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.announcement-title a:hover {
    color: var(--primary-color);
}

.announcement-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
}

.announcement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Custom Form Controls */
.form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 12px 15px;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(22, 69, 22, 0.25);
}

/* Custom Checkboxes */
.custom-checkbox .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* DataTables Customization */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: none !important;
    background: none !important;
    margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--primary-color) !important;
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: var(--border-radius);
}

/* Chart Containers */
.chart-container {
    position: relative;
}

/* Hero Illustration Animation */
.hero-image img {
    animation: float 6s ease-in-out infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .section-title h2 {
        font-size: 1.8rem !important;
    }
    
    .process-step {
        margin-bottom: 30px;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .navbar, .footer, .back-to-top {
        display: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: #121212;
        color: #e0e0e0;
    }
    
    .project-card, .announcement-card, .process-step {
        background: #1e1e1e;
        color: #e0e0e0;
    }
    
    .form-control, .form-select {
        background: #2d2d2d;
        border-color: #404040;
        color: #e0e0e0;
    }
}
/* Projects Page Specific Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/pattern.png');
    opacity: 0.1;
}

.breadcrumb {
    background: transparent;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

.project-counter {
    box-shadow: var(--shadow-md);
}

/* View Toggle */
.view-toggle .btn-group .btn {
    border-radius: var(--border-radius);
    padding: 10px 20px;
    font-weight: 500;
}

.view-toggle .btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* DataTable Customization */
.dataTables_wrapper {
    margin-top: 20px;
}

.dataTables_length label,
.dataTables_filter label {
    font-weight: 500;
}

.dataTables_wrapper .dataTables_paginate {
    margin-top: 20px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 8px 15px;
    margin: 0 3px;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    background: white;
    color: var(--primary-color);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Filter Sidebar Enhancements */
.filter-options {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.filter-options::-webkit-scrollbar {
    width: 5px;
}

.filter-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

.filter-checkbox {
    transition: var(--transition);
}

.filter-checkbox:hover {
    background: rgba(22, 69, 22, 0.05);
    transform: translateX(5px);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Download Section */
.download-section {
    border: 2px dashed rgba(22, 69, 22, 0.2);
}

.download-section .btn-group .btn {
    padding: 10px 15px;
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    padding: 50px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* Chart Container Enhancements */
.chart-container {
    transition: var(--transition);
}

.chart-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Responsive Table */
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        text-align: left;
        margin-bottom: 10px;
    }
    
    .dataTables_wrapper .dataTables_length select,
    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        margin-top: 5px;
    }
    
    #projectsTable {
        font-size: 0.9rem;
    }
    
    #projectsTable td, #projectsTable th {
        padding: 8px 5px;
    }
}

/* Print Styles for Table */
@media print {
    .filter-sidebar,
    .view-toggle,
    .dataTables_length,
    .dataTables_filter,
    .dataTables_info,
    .dataTables_paginate,
    .footer,
    .back-to-top {
        display: none !important;
    }
    
    .data-table-wrapper {
        box-shadow: none;
        padding: 0;
    }
    
    #projectsTable {
        width: 100% !important;
    }
}
/* Project Details Specific Styles - Add to custom.css */

/* Timeline Responsive Fix */
@media (max-width: 768px) {
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: 15px !important;
        right: auto !important;
    }
}

/* Social Share Buttons */
.btn-twitter {
    background: #1da1f2;
    color: white;
    border: none;
}

.btn-twitter:hover {
    background: #0d95e8;
    color: white;
}

.btn-linkedin {
    background: #0077b5;
    color: white;
    border: none;
}

.btn-linkedin:hover {
    background: #00669b;
    color: white;
}

/* Content Text Formatting */
.content-text {
    line-height: 1.8;
    font-size: 1.1rem;
}

.content-text p {
    margin-bottom: 1.5rem;
}

.content-text ul, .content-text ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-text li {
    margin-bottom: 0.5rem;
}

/* Alert Styles */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 20px;
}

.alert-info {
    background: rgba(22, 69, 22, 0.1);
    color: var(--primary-color);
}

/* Form Styles */
.form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 12px 15px;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(22, 69, 22, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Print Button Animation */
.print-btn {
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.print-btn.show {
    display: flex;
}

/* Related Projects Carousel */
.related-projects-carousel .carousel-item {
    padding: 10px;
}

.related-projects-carousel .carousel-control-prev,
.related-projects-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

/* Status Badges */
.badge.bg-completed { background: #28a745 !important; }
.badge.bg-ongoing { background: #ffc107 !important; color: #000; }
.badge.bg-upcoming { background: #6c757d !important; }

/* Document Preview */
.document-preview {
    border: 2px dashed #dee2e6;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
    margin-bottom: 20px;
}

.document-preview i {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 15px;
}

/* Breadcrumb Enhancement */
.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Sidebar Widget */
.sidebar-widget .card {
    border-radius: 15px;
    overflow: hidden;
}

.sidebar-widget .card-header {
    border-radius: 15px 15px 0 0 !important;
}

/* Responsive Images */
.content-section img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

/* Blockquote Styling */
blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-light);
}

/* Table Styling in Content */
.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.content-section table th,
.content-section table td {
    padding: 12px;
    border: 1px solid #dee2e6;
}

.content-section table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.content-section table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Print Optimizations */
@media print {
    .navbar,
    .footer,
    .back-to-top,
    .print-btn,
    .sidebar-widget:not(.documents-widget),
    .content-section#contact-form,
    .hero-actions {
        display: none !important;
    }
    
    .project-hero {
        background: white !important;
        color: black !important;
        padding: 20px 0 !important;
    }
    
    .project-meta-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin: 20px 0 !important;
    }
    
    .meta-card {
        background: white !important;
        border: 1px solid #000 !important;
        padding: 15px !important;
    }
    
    .content-section {
        padding: 20px 0 !important;
        break-inside: avoid;
    }
    
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
    
    .btn {
        display: none !important;
    }
}