/* E-Procurement Frontend Styles */

:root {
    --ep-primary: #006633;
    --ep-secondary: #FFC107;
    --ep-danger: #dc3545;
    --ep-success: #28a745;
    --ep-dark: #1a1a1a;
    --ep-light: #f8f9fa;
    --ep-border: #dee2e6;
    --ep-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --ep-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Floating Button */
.eprocurement-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
}

.eprocurement-btn-main {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--ep-primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--ep-shadow-lg);
    transition: all 0.3s ease;
}

.eprocurement-btn-main:hover {
    background: #004d26;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.eprocurement-btn-main svg {
    width: 24px;
    height: 24px;
}

/* Modal */
.eprocurement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.eprocurement-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.eprocurement-modal-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    box-shadow: var(--ep-shadow-lg);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.eprocurement-modal-header {
    padding: 30px;
    border-bottom: 2px solid var(--ep-border);
    background: linear-gradient(135deg, var(--ep-primary) 0%, #004d26 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.eprocurement-modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.eprocurement-subtitle {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.eprocurement-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.eprocurement-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Navigation */
.eprocurement-modal-nav {
    display: flex;
    gap: 5px;
    padding: 20px 30px 0;
    background: var(--ep-light);
    border-bottom: 2px solid var(--ep-border);
}

.eprocurement-nav-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.eprocurement-nav-btn:hover {
    color: var(--ep-primary);
}

.eprocurement-nav-btn.active {
    color: var(--ep-primary);
    border-bottom-color: var(--ep-primary);
}

/* Content */
.eprocurement-modal-content {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.eprocurement-tab-content {
    display: none;
}

.eprocurement-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Filters */
.eprocurement-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.eprocurement-select,
.eprocurement-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--ep-border);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.eprocurement-select:focus,
.eprocurement-input:focus {
    outline: none;
    border-color: var(--ep-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 51, 0.1);
}

/* Tenders List */
.eprocurement-tenders-list {
    display: grid;
    gap: 20px;
}

.eprocurement-tender-card {
    background: white;
    border: 2px solid var(--ep-border);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.eprocurement-tender-card:hover {
    border-color: var(--ep-primary);
    box-shadow: var(--ep-shadow);
    transform: translateY(-2px);
}

.eprocurement-tender-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.eprocurement-tender-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ep-dark);
    margin: 0 0 8px 0;
}

.eprocurement-tender-category {
    display: inline-block;
    padding: 6px 12px;
    background: var(--ep-primary);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.eprocurement-tender-description {
    color: #666;
    margin: 15px 0;
    line-height: 1.6;
}

.eprocurement-tender-meta {
    display: flex;
    gap: 25px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--ep-border);
}

.eprocurement-tender-meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.eprocurement-tender-meta-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
}

.eprocurement-tender-meta-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--ep-dark);
}

/* Form */
.eprocurement-form {
    max-width: 700px;
}

.eprocurement-form-group {
    margin-bottom: 25px;
}

.eprocurement-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ep-dark);
}

.eprocurement-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--ep-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.eprocurement-textarea:focus {
    outline: none;
    border-color: var(--ep-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 51, 0.1);
}

.eprocurement-btn-primary {
    padding: 14px 32px;
    background: var(--ep-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.eprocurement-btn-primary:hover {
    background: #004d26;
    transform: translateY(-2px);
    box-shadow: var(--ep-shadow);
}

/* Statistics */
.eprocurement-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.eprocurement-stat-card {
    background: linear-gradient(135deg, var(--ep-primary) 0%, #004d26 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--ep-shadow);
}

.eprocurement-stat-card h3 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.eprocurement-stat-card p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Loading */
.eprocurement-loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* Login Required */
.eprocurement-login-required {
    text-align: center;
    padding: 60px 20px;
}

.eprocurement-login-required p {
    font-size: 18px;
    color: #666;
    margin-bottom: 25px;
}

/* Transparency Section */
.eprocurement-transparency-section {
    margin-top: 30px;
}

.eprocurement-transparency-section h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--ep-dark);
}

.eprocurement-awarded-list {
    display: grid;
    gap: 15px;
}

.eprocurement-awarded-item {
    background: var(--ep-light);
    border-left: 4px solid var(--ep-success);
    padding: 20px;
    border-radius: 8px;
}

.eprocurement-awarded-item h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: var(--ep-dark);
}

.eprocurement-awarded-item p {
    margin: 5px 0;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .eprocurement-float-btn {
        bottom: 20px;
        right: 20px;
    }
    
    .eprocurement-btn-main {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .eprocurement-btn-text {
        display: none;
    }
    
    .eprocurement-modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .eprocurement-modal-header {
        padding: 20px;
    }
    
    .eprocurement-modal-header h2 {
        font-size: 22px;
    }
    
    .eprocurement-modal-nav {
        padding: 15px 20px 0;
        overflow-x: auto;
    }
    
    .eprocurement-nav-btn {
        padding: 10px 16px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .eprocurement-modal-content {
        padding: 20px;
    }
    
    .eprocurement-filters {
        flex-direction: column;
    }
    
    .eprocurement-stats-grid {
        grid-template-columns: 1fr;
    }
}