﻿
:root {
    --brand-lime: #78BE20;
    --brand-lime-hover: #72A642;
    --charcoal-black: #262626;
    --charcoal-dark: #1a1a1a;
    --charcoal-light: #383838;
    --pure-white: #FFFFFF;
    --amber-highlight: #FFC107;
    --text-gray: #383838;
    --text-light: #6c757d;
}

body {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    font-family: 'Poppins', sans-serif;
}

h2 {
    color: var(--charcoal-black);
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom: 3px solid var(--brand-lime) !important;
}

/* Card Styles */
.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease-in-out;
    background: var(--pure-white);
}

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(120, 190, 32, 0.15);
    }

.card-header {
    font-weight: 600;
    background: var(--charcoal-black);
    color: var(--pure-white);
    border-bottom: 2px solid var(--brand-lime);
    font-size: 1.1rem;
}

    .card-header.bg-secondary {
        background: var(--charcoal-light) !important;
    }

    .card-header.bg-success {
        background: var(--brand-lime) !important;
        color: var(--charcoal-black) !important;
    }

/* Form Styles */
.form-label {
    font-weight: 600;
    color: var(--charcoal-light);
}

    .form-label i {
        color: var(--brand-lime);
        margin-right: 5px;
    }

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: all 0.2s ease;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--brand-lime);
        box-shadow: 0 0 5px rgba(120, 190, 32, 0.3);
    }

/* Button Styles */
.btn-primary {
    background: var(--brand-lime);
    color: var(--charcoal-black);
    font-weight: 600;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 10px 20px;
}

    .btn-primary:hover {
        background: var(--brand-lime-hover);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(120, 190, 32, 0.3);
    }

.btn-light {
    background: var(--pure-white);
    color: var(--charcoal-black);
    border: 1px solid #dee2e6;
}

    .btn-light:hover {
        background: var(--brand-lime);
        color: var(--charcoal-black);
        border-color: var(--brand-lime);
    }

/* Package Section */
.package-section {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--brand-lime);
}

.text-secondary {
    color: var(--charcoal-light) !important;
}

/* JSON Display */
#json-renderer {
    background: var(--pure-white);
    border-radius: 8px;
    padding: 1rem;
    font-family: "Courier New", monospace;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 500px;
    display: none;
    border: 1px solid #e9ecef;
}

.json-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
}

    .json-placeholder i {
        font-size: 3rem;
        margin-bottom: 1rem;
        color: var(--brand-lime);
        opacity: 0.7;
    }

/* Loader */
#fullPageLoader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(38, 38, 38, 0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--pure-white);
}

    #fullPageLoader .spinner-border {
        width: 3rem;
        height: 3rem;
        color: var(--brand-lime);
    }

/* Utility Buttons */
.copy-clear-btns {
    display: flex;
    gap: 0.5rem;
}

/* Data Table Styles */
.rates-table-container {
    margin-top: 20px;
    display: none;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: var(--pure-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

    .rates-table th {
        background: var(--charcoal-black);
        color: var(--pure-white);
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        border-bottom: 2px solid var(--brand-lime);
    }

    .rates-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #e9ecef;
    }

    .rates-table tr:hover {
        background-color: #f8f9fa;
    }

    .rates-table tr:last-child td {
        border-bottom: none;
    }

.price-cell {
    font-weight: 700;
    color: var(--brand-lime);
    font-size: 1.3em;
    text-align: center;
}

.total-price-cell {
    font-weight: 800;
    color: var(--charcoal-black);
    font-size: 1.4em;
    text-align: center;
    background-color: #f8f9fa;
}

/* Service Badges */
.service-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-right: 8px;
    background: var(--charcoal-light);
    color: var(--pure-white);
}

/* Badge Variations */
.badge-express {
    background: var(--amber-highlight);
    color: var(--charcoal-black);
}

.badge-priority {
    background: var(--brand-lime);
    color: var(--charcoal-black);
}

.badge-ground {
    background: var(--charcoal-light);
    color: var(--pure-white);
}

.badge-media {
    background: #6f42c1;
    color: var(--pure-white);
}

.badge-library {
    background: #fd7e14;
    color: var(--pure-white);
}

/* Detail Items */
.detail-item {
    margin-bottom: 8px;
}

.detail-label {
    font-weight: 600;
    color: var(--charcoal-black);
    font-size: 0.9em;
}

.detail-value {
    color: var(--text-light);
    font-size: 0.9em;
}

/* Summary Card */
.summary-card {
    background: linear-gradient(135deg, #f8fff0, #f0f9ff);
    border-left: 4px solid var(--brand-lime);
    border-radius: 8px;
}

.table-responsive {
    border-radius: 8px;
}

.rate-indicator {
    display: inline-block;
    padding: 3px 8px;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    color: var(--charcoal-light);
}

.service-count {
    font-size: 0.9em;
    color: var(--charcoal-black);
    margin-left: 10px;
    font-weight: 600;
}

/* No Rates Message */
#noRatesMessage {
    text-align: center;
    color: var(--text-light);
}

/* Text colors */
.text-primary {
    color: var(--brand-lime) !important;
}

.text-success {
    color: var(--brand-lime) !important;
}

.text-muted {
    color: var(--text-light) !important;
}

/* Additional utility classes */
.bg-lime {
    background-color: var(--brand-lime) !important;
}

.text-lime {
    color: var(--brand-lime) !important;
}

.bg-charcoal {
    background-color: var(--charcoal-black) !important;
}

.text-charcoal {
    color: var(--charcoal-black) !important;
}
