/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* General Styles */
.ig-container {
    margin: 20px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ig-notice {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.ig-notice.ig-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ig-notice.ig-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ig-notice.ig-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.ig-notice.ig-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Forms */
.ig-form {
    max-width: 800px;
    margin: 0 auto;
}

.ig-form-field {
    margin-bottom: 20px;
}

.ig-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.ig-form-field input[type="text"],
.ig-form-field input[type="email"],
.ig-form-field input[type="number"],
.ig-form-field select,
.ig-form-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ig-form-field textarea {
    min-height: 120px;
}

.ig-form-field .description {
    margin-top: 5px;
    font-size: 0.85em;
    color: #666;
}

.ig-form-field .required {
    color: #dc3545;
}

.ig-form-actions {
    margin-top: 30px;
    text-align: right;
}

/* Project Listings */
.ig-projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ig-project-card {
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    padding: 0;
    transition: all 0.3s ease;
    background-color: white;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ig-project-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.ig-project-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #2d3748;
    font-weight: 600;
}

.ig-project-meta {
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.ig-project-meta span {
    display: inline-block;
}

.ig-project-description {
    margin-bottom: 15px;
    color: #4a5568;
    line-height: 1.6;
}

.ig-project-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Single Project Display */
.ig-project-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5eb;
}

.ig-project-header h2 {
    margin: 0;
    font-size: 26px;
    color: #2d3748;
}

.ig-project-details {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.ig-project-meta {
    padding: 20px;
    background-color: #f8fafd;
    border-radius: 8px;
    border: 1px solid #e1e5eb;
}

.ig-meta-item {
    margin-bottom: 15px;
    line-height: 1.5;
}

.ig-meta-item strong {
    display: block;
    margin-bottom: 5px;
    color: #2d3748;
    font-weight: 600;
}

.ig-project-content {
    line-height: 1.6;
}

.ig-project-content h3 {
    margin-top: 0;
    color: #2d3748;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e5eb;
}

/* Project navigation tabs */
.ig-project-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e1e5eb;
}

.ig-project-tabs a {
    padding: 12px 20px;
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
}

.ig-project-tabs a.active {
    color: #377dff;
}

.ig-project-tabs a.active:after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #377dff;
}

.ig-project-tabs a:hover {
    color: #377dff;
}

/* Status Indicators */
.ig-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 600;
}

.ig-status-pending {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.ig-status-approved, 
.ig-status-open {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ig-status-rejected, 
.ig-status-closed {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ig-status-in-review, 
.ig-status-in-negotiations {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Bid System */
.ig-bids-list {
    margin-top: 20px;
}

.ig-bid-item {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.ig-bid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ig-bid-title {
    margin: 0;
    font-size: 1.1em;
}

.ig-bid-project {
    font-weight: 600;
}

.ig-bid-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    margin-bottom: 10px;
}

/* User Dashboard */
.ig-dashboard-section {
    margin-bottom: 30px;
}

.ig-dashboard-heading {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.ig-dashboard-content {
    margin-bottom: 20px;
}

.ig-dashboard-actions {
    margin-top: 20px;
}

/* Agreement Display */
.ig-agreement {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.ig-agreement-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.ig-agreement-meta {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.ig-agreement-content {
    margin-bottom: 20px;
}

.ig-agreement-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: right;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ig-projects-list {
        grid-template-columns: 1fr;
    }
    
    .ig-bid-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ig-bid-meta {
        flex-direction: column;
        gap: 5px;
    }
}