/* Main Styles for INES Application System */

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #FFFFFF;
    color: #333333;
    line-height: 1.6;
    padding-bottom: 60px; /* Space for footer */
}

/* Header and Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #006400; /* INES green for navbar */
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
    color: white;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #FFD700; /* INES gold hover effect */
}

.navbar-dark .navbar-nav .active > .nav-link {
    color: #FFD700; /* INES gold for active nav item */
}

.dropdown-menu {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
}

.dropdown-item:hover {
    background-color: rgba(0, 100, 0, 0.1); /* Light green hover effect */
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
}

.card-header.bg-primary {
    background-color: #006400; /* INES green for card headers */
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    border-radius: 4px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #006400;
    border-color: #006400;
}

.btn-primary:hover {
    background-color: #004d00; /* Darker green on hover */
    border-color: #004d00;
}

.btn-secondary {
    background-color: #FFD700;
    border-color: #FFD700;
    color: #333; /* Dark text on gold background */
}

.btn-secondary:hover {
    background-color: #E6C200; /* Darker gold on hover */
    border-color: #E6C200;
    color: #333;
}

.btn-success {
    background-color: #006400;
    border-color: #006400;
}

.btn-success:hover {
    background-color: #004d00; /* Darker green on hover */
    border-color: #004d00;
}

.btn-outline-primary {
    color: #006400;
    border-color: #006400;
}

.btn-outline-primary:hover {
    background-color: #006400;
    color: white;
}

/* Forms */
.form-control {
    border-radius: 4px;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #006400;
    box-shadow: 0 0 0 0.2rem rgba(0, 100, 0, 0.25); /* Green shadow */
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.custom-file-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.alert-primary {
    background-color: rgba(0, 100, 0, 0.15); /* Light green background */
    color: #006400;
}

.alert-secondary {
    background-color: rgba(255, 215, 0, 0.15); /* Light gold background */
    color: #B8860B;
}

/* Tables */
.table {
    background-color: #ffffff;
    border-radius: 4px;
    overflow: hidden;
}

.table thead th {
    background-color: rgba(0, 100, 0, 0.05); /* Very light green for table headers */
    border-bottom: 2px solid #006400;
    font-weight: 600;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.4em 0.6em;
    border-radius: 4px;
}

.badge-primary {
    background-color: #006400;
}

.badge-secondary {
    background-color: #FFD700;
    color: #333;
}

.badge-success {
    background-color: #006400;
}

/* Jumbotron */
.jumbotron {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    background-color: #006400; /* INES green for footer */
    color: white;
}

footer a {
    color: #FFD700; /* INES gold links in footer */
}

footer a:hover {
    color: #FFFF99; /* Lighter gold on hover */
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .jumbotron {
        padding: 1.5rem;
    }
    
    .table-responsive {
        border-radius: 4px;
        overflow: hidden;
    }
}

/* Application Status Colors */
.status-draft {
    background-color: #FFD700;
    color: #333;
}

.status-submitted, .status-under-review {
    background-color: #17a2b8;
}

.status-pending-payment {
    background-color: #ffc107;
    color: #333;
}

.status-approved, .status-completed {
    background-color: #006400;
}

.status-rejected {
    background-color: #dc3545;
}

/* Custom Styles for Application Forms */
.team-member {
    transition: all 0.3s ease;
}

.team-member:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.remove-member {
    opacity: 0.7;
}

.remove-member:hover {
    opacity: 1;
}

/* Notification Badge */
.navbar-nav .dropdown-toggle .badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
}

/* Dashboard Cards */
.dashboard-card {
    transition: transform 0.3s ease;
    border-top: 3px solid #006400; /* INES green top border */
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #006400; /* INES green icons */
}

/* Signature Area */
.signature-pad {
    border: 1px dashed #dee2e6;
    border-radius: 4px;
    background-color: #fff;
    position: relative;
    min-height: 150px;
    margin-bottom: 1rem;
}

.signature-pad canvas {
    width: 100%;
    height: 100%;
}

.clear-signature {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
}

/* File Upload Preview */
.file-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* Application Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -30px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #006400; /* INES green timeline dots */
    border: 2px solid white;
}

.timeline-item.completed:before {
    background-color: #006400; /* Green for completed */
}

.timeline-item.pending:before {
    background-color: #FFD700; /* INES gold for pending */
}

.timeline-item.rejected:before {
    background-color: #dc3545;
}

.timeline-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.timeline-content {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* INES-specific elements */
.ines-logo {
    max-height: 40px;
}

.ines-header {
    background: linear-gradient(to right, #006400, #9a0000);
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.ines-section-title {
    color: #006400;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        padding: 0;
        margin: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .no-print {
        display: none !important;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    footer {
        position: static;
    }
}