/* Tender Bid Page Styles - Refactored */

/* ====== Button Styles ====== */
.tender-btn-primary {
    background: linear-gradient(135deg, #00b8c3 0%, #00a8b3 100%);
    border-color: #00b8c3;
    color: #ffffff !important;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 184, 195, 0.2);
    transition: all 0.3s ease;
}

.tender-btn-primary:hover,
.tender-btn-primary:focus,
.tender-btn-primary:active {
    background: linear-gradient(135deg, #00a8b3 0%, #0098a3 100%);
    border-color: #00a8b3;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 184, 195, 0.3);
}

.tender-btn-primary.btn-small,
.tender-btn-primary.btn-sm {
    font-size: 0.85rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
}

.tender-btn-primary.btn-large {
    font-size: 1rem;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tender-btn-primary[disabled],
.tender-btn-primary.disabled {
    background-color: #b8bfc9;
    border-color: #b8bfc9;
    color: #ffffff !important;
    opacity: 0.85;
    cursor: not-allowed;
}

.tender-btn-outline {
    background-color: #ffffff;
    color: #00b8c3 !important;
    border: 2px solid #00b8c3;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 184, 195, 0.1);
    transition: all 0.3s ease;
}

.tender-btn-outline:hover,
.tender-btn-outline:focus,
.tender-btn-outline:active {
    background-color: #00b8c3;
    color: #ffffff !important;
    border-color: #00b8c3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 184, 195, 0.2);
}

/* ====== Form Controls ====== */
.tender-form-control {
    font-size: 1.1rem !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    border: 2px solid #e9ecef !important;
    transition: all 0.3s ease !important;
    line-height: 1.6 !important;
}

#tax_percent.tender-form-control {
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    height: auto !important;
    min-height: 50px !important;
}

.tender-form-control:focus {
    border-color: #00b8c3 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 184, 195, 0.25) !important;
    outline: none !important;
}

.tender-form-control.is-invalid {
    border-color: #dc3545 !important;
}

.tender-form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.tender-form-label {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 0.5rem !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* ====== File Upload Buttons ====== */
.tender-file-upload-btn {
    background: linear-gradient(135deg, #00b8c3 0%, #00a8b3 100%) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0, 184, 195, 0.3) !important;
}

.tender-file-upload-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 184, 195, 0.4) !important;
    background: linear-gradient(135deg, #00a8b3 0%, #0098a3 100%) !important;
    color: #ffffff !important;
}

.tender-file-upload-btn i {
    font-size: 1.2rem !important;
}

/* ====== Uppy Dashboard Customization ====== */
.uppy-Dashboard {
    background: #ffffff !important;
}

.uppy-Dashboard-inner {
    background: #ffffff !important;
}

.uppy-Dashboard-content {
    background: #ffffff !important;
}

.uppy-Dashboard-files {
    background: #ffffff !important;
}

.uppy-Dashboard-AddFiles {
    background: #ffffff !important;
    border: 1px dashed #e5e7eb !important;
    border-radius: 8px !important;
    color: #495057 !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.uppy-Dashboard-AddFiles:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    background: #f8f9fa !important;
    color: #1f1f1f !important;
}

.uppy-Dashboard-AddFiles-title {
    color: #495057 !important;
    font-weight: 600 !important;
}

.uppy-Dashboard-AddFiles-info {
    color: #6c757d !important;
    opacity: 1 !important;
}

.uppy-StatusBar-actionBtn--upload {
    background: linear-gradient(135deg, #00b8c3 0%, #00a8b3 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 184, 195, 0.3) !important;
}

.uppy-StatusBar-actionBtn--upload:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 184, 195, 0.4) !important;
    background: linear-gradient(135deg, #00a8b3 0%, #0098a3 100%) !important;
    color: #ffffff !important;
}

/* ====== Questions and Answers ====== */
.tender-qa-container {
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.tender-question-item {
    border: none !important;
    border-bottom: 1px solid #e9ecef !important;
    padding: 1.5rem !important;
    margin-bottom: 0 !important;
    transition: all 0.3s ease !important;
}

.tender-question-item:hover {
    background-color: #f8f9fa !important;
}

.tender-question-item:last-child {
    border-bottom: none !important;
}

.tender-question-text {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
}

.tender-answer-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    border-left: 4px solid #00b8c3 !important;
}

.tender-answer-text {
    font-size: 1rem !important;
    color: #495057 !important;
    line-height: 1.6 !important;
    white-space: pre-wrap !important;
}

.tender-qa-icon {
    font-size: 1.5rem !important;
    margin-right: 1rem !important;
}

/* ====== General Form Controls ====== */
.form-control {
    font-size: 1.1rem !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    border: 2px solid #e9ecef !important;
    transition: all 0.3s ease !important;
    line-height: 1.6 !important;
}

.form-control:focus {
    border-color: #00b8c3 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 184, 195, 0.25) !important;
    outline: none !important;
}

textarea.form-control {
    resize: vertical !important;
    min-height: 120px !important;
}

/* ====== Buttons ====== */
.btn {
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

/* ====== Cards ====== */
.card {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
}

.card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

.card-body {
    padding: 2rem !important;
}

/* ====== List Groups ====== */
.list-group-item {
    border: none !important;
    border-bottom: 1px solid #e9ecef !important;
    padding: 1rem 1.5rem !important;
    transition: all 0.3s ease !important;
}

.list-group-item:hover {
    background-color: #f8f9fa !important;
}

.list-group-item:last-child {
    border-bottom: none !important;
}

/* ====== File Items ====== */
.tender-file-item {
    padding: 1.5rem !important;
    border-radius: 8px !important;
    border: 1px solid #e9ecef !important;
    transition: all 0.3s ease !important;
}

.tender-file-item:hover {
    border-color: #00b8c3 !important;
    box-shadow: 0 4px 12px rgba(0, 184, 195, 0.15) !important;
}

.tender-file-row {
    background: #f8f9fa;
    border-radius: 12px;
}

.tender-file-name {
    max-width: 260px;
}

.tender-file-actions .btn {
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 8px;
}

/* ====== Badges ====== */
.badge {
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

/* ====== Alerts ====== */
.alert {
    border: none !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

.tender-alert-submitted {
    border-radius: 12px;
    background: #e8f8f5;
    border: 1px solid #1ab69d;
    color: #1f1f1f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tender-alert-submitted-icon {
    color: #1ab69d;
}

/* ====== Info Values ====== */
.tender-info-value-info {
    color: #00b8c3 !important;
    font-weight: 500;
}

.tender-info-label {
    color: #6c757d;
    font-size: 14px;
}

.tender-info-value {
    font-weight: 600;
    color: #1f1f1f;
}

.tender-info-value-danger {
    color: #dc3545;
}

.tender-info-value-success {
    color: #1ab69d;
}

.tender-info-value-warning {
    color: #ffc107;
}

/* ====== Section Titles ====== */
.tender-section-title-primary {
    color: #1ab69d;
}

.tender-section-title-dark {
    color: #283462;
}

.tender-text-main {
    color: #1f1f1f;
}

.tender-price-label {
    font-size: 18px;
}

.tender-icon-accent {
    color: #00babe;
}

.tender-icon-secondary {
    color: #283462;
}

/* ====== Price Highlight ====== */
.price-highlight {
    background: #e6f7f8;
    padding: 20px;
    border-radius: 8px;
    border: 2px dashed #00babe;
    margin-bottom: 20px;
}

.price-input {
    font-size: 20px;
    padding: 15px 20px;
    border: 2px solid #00babe;
    border-radius: 8px;
    width: 100%;
    background: #f8f9fa;
    font-weight: 600;
    color: #00babe;
}

.price-input:focus {
    border-color: #00a5a9;
    outline: none;
    background: white;
}

.price-input::placeholder {
    color: #999;
    font-weight: normal;
}

.price-input.is-invalid {
    border-color: #dc3545;
}

/* ====== Tax Summary ====== */
.tender-tax-summary {
    background: #f8f9fa;
    border-radius: 8px;
}

.tender-flex-gap-12 {
    gap: 12px;
}

/* ====== Countdown Timer ====== */
.countdown-container {
    background: #00babe;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 186, 190, 0.2);
    position: relative;
    overflow: hidden;
}

.countdown-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.countdown-title {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px 15px;
    min-width: 80px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.countdown-number {
    font-size: 32px;
    font-weight: 700;
    color: white;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.countdown-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
}

.countdown-expired-alert {
    margin: 0;
}

.countdown-expired-icon {
    font-size: 48px;
}

/* ====== Workflow Stepper ====== */
.workflow-stepper {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 5px;
}

.workflow-stepper .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 160px;
    text-align: center;
}

.workflow-stepper .node {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #cfd8dc;
    background: #fff;
}

.workflow-stepper .node.done {
    background: #1ab69d;
    border-color: #1ab69d;
    color: #fff;
}

.workflow-stepper .node.pending {
    background: #fff;
    border-color: #cfd8dc;
    color: #90a4ae;
}

.workflow-stepper .node .index {
    font-weight: 700;
}

.workflow-stepper .label {
    margin-top: 8px;
    font-weight: 600;
    color: #1f1f1f;
}

.workflow-stepper .time {
    margin-top: 4px;
    font-size: 12px;
    color: #6c757d;
}

.workflow-stepper .connector {
    height: 3px;
    flex: 1 0 30px;
    background: #e9ecef;
    border-radius: 3px;
}

.workflow-stepper .connector.active {
    background: linear-gradient(90deg, #1ab69d, #00babe);
}

/* ====== Top Bids Section ====== */
.top-bids-section {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.section-header i.icon-trophy-line {
    animation: bounce 2s infinite;
}

.tender-trophy-main-icon {
    font-size: 48px;
    color: #00babe;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.tender-dates-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.tender-close-date,
.tender-result-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    font-size: 15px;
}

.tender-close-date i,
.tender-result-date i {
    font-size: 20px;
}

.tender-close-date strong,
.tender-result-date strong {
    color: #1f1f1f;
}

.tender-close-date .date-value {
    color: #00babe;
    font-weight: 600;
}

.tender-result-date .date-value {
    color: #00babe;
    font-weight: 600;
}

.bids-list {
    max-width: 800px;
    margin: 0 auto;
}

.bid-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.bid-item.winner {
    background: #e6f7f8;
    border: 2px solid #00babe;
}

.bid-rank {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00babe;
    border-radius: 50%;
    margin-right: 20px;
    flex-shrink: 0;
}

.bid-item.winner .bid-rank {
    background: #00babe;
}

.bid-rank i {
    font-size: 28px;
    color: white;
}

.rank-number {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.bid-info {
    flex: 1;
}

.bidder-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 8px;
}

.bidder-name i {
    color: #00babe;
    margin-right: 8px;
}

.bid-amount {
    font-size: 20px;
    font-weight: bold;
    color: #00babe;
}

.bid-amount i {
    margin-right: 5px;
}

/* ====== Alert Closed ====== */
.alert-closed {
    background: #e6f7f8;
    border: 2px solid #00babe;
    color: #006c72;
    padding: 50px 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 186, 190, 0.15);
    position: relative;
    overflow: hidden;
}

.alert-closed::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 186, 190, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.alert-closed .icon-wrapper {
    width: 100px;
    height: 100px;
    background: #00babe;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 186, 190, 0.3);
    position: relative;
    z-index: 1;
}

.alert-closed i {
    font-size: 50px;
    color: white;
}

.alert-closed h3 {
    color: #00babe;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.alert-closed p {
    color: #00a5a9;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.alert-closed .tender-dates {
    background: rgba(0, 186, 190, 0.06);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.alert-closed .tender-dates p {
    margin-bottom: 10px;
    font-weight: 600;
}

/* ====== Icon Button ====== */
.tender-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #00b8c3;
    color: #00b8c3;
    background-color: #fff;
    padding: 0;
}

.tender-icon-btn i {
    font-size: 16px;
}

.tender-icon-btn:hover,
.tender-icon-btn:focus {
    background-color: #00b8c3;
    color: #fff;
    border-color: #00b8c3;
}

/* ====== Q&A Send Button ====== */
.qa-send-btn {
    border-radius: 999px;
    padding: 8px 26px;
    font-weight: 600;
}

/* ====== Breadcrumb ====== */
.tender-bid-breadcrumb {
    padding-top: 150px !important;
}

/* ====== Responsive ====== */
@media (max-width: 991.98px) {
    .tender-bid-breadcrumb {
        padding-top: 110px !important;
    }
}

@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem !important;
    }

    .tender-question-item {
        padding: 1rem !important;
    }

    .tender-answer-box {
        padding: 1rem !important;
    }

    .countdown-item {
        min-width: 70px;
        padding: 15px 10px;
    }

    .countdown-number {
        font-size: 28px;
    }

    .countdown-label {
        font-size: 12px;
    }

    .top-bids-section {
        padding: 20px;
    }

    .bid-item {
        padding: 15px;
    }

    .bid-rank {
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }

    .bidder-name {
        font-size: 16px;
    }

    .bid-amount {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .workflow-stepper .step {
        min-width: 140px;
    }

    .workflow-stepper .label {
        font-size: 13px;
    }
}

/* ====== Tender Bid Page ====== */
.tender-bid-page {
    padding: 0 0 60px 0;
    direction: rtl;
}

.bid-form-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

.back-btn {
    margin-bottom: 30px;
}

/* ====== Success Alert ====== */
.alert-success {
    background: #e6f7f8;
    border: 2px solid #00babe;
    color: #155724;
    padding: 50px 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 186, 190, 0.15);
    position: relative;
    overflow: hidden;
}

.alert-success::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 186, 190, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.alert-success .icon-wrapper {
    width: 100px;
    height: 100px;
    background: #00babe;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 186, 190, 0.3);
    position: relative;
    z-index: 1;
}

.alert-success i {
    font-size: 50px;
    color: white;
}

.alert-success h3 {
    color: #00babe;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.alert-success p {
    color: #00a5a9;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}