/* Fuel Price Display - Frontend Styles */

.fpd-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Default Table Style */
.fpd-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Dark Style (Default from your code) */
.fpd-style-default .fpd-header-row,
.fpd-style-dark .fpd-header-row {
    background: #222 !important;
    color: #ffcc00 !important;
}

.fpd-style-default .fpd-header-cell,
.fpd-style-dark .fpd-header-cell {
    padding: 12px 10px;
    font-weight: bold;
    text-align: left;
    border: 1px solid #444;
}

.fpd-style-default .fpd-data-row,
.fpd-style-dark .fpd-data-row {
    background: #fff;
    transition: background-color 0.2s;
}

.fpd-style-default .fpd-data-row:hover,
.fpd-style-dark .fpd-data-row:hover {
    background: #f5f5f5;
}

.fpd-style-default .fpd-product-cell,
.fpd-style-default .fpd-price-cell,
.fpd-style-dark .fpd-product-cell,
.fpd-style-dark .fpd-price-cell {
    padding: 10px;
    border: 1px solid #ccc;
}

/* Light Style */
.fpd-style-light .fpd-header-row {
    background: #f8f9fa !important;
    color: #333 !important;
    border-bottom: 2px solid #dee2e6;
}

.fpd-style-light .fpd-header-cell {
    padding: 12px 10px;
    font-weight: 600;
    text-align: left;
}

.fpd-style-light .fpd-data-row {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
}

.fpd-style-light .fpd-data-row:hover {
    background: #f1f3f5;
}

.fpd-style-light .fpd-product-cell,
.fpd-style-light .fpd-price-cell {
    padding: 10px;
}

/* Price Cell Styling */
.fpd-price-cell {
    font-weight: 500;
    text-align: right;
    font-family: 'Courier New', monospace;
}

/* Error Message */
.fpd-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    font-weight: 500;
}

/* Loading State */
.fpd-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.fpd-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ffcc00;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: fpd-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes fpd-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .fpd-table {
        font-size: 14px;
    }
    
    .fpd-header-cell,
    .fpd-product-cell,
    .fpd-price-cell {
        padding: 8px 5px !important;
    }
}

@media (max-width: 480px) {
    .fpd-table {
        font-size: 12px;
    }
    
    .fpd-container {
        overflow-x: auto;
    }
}

/* Georgian Font Support */
.fpd-product-cell {
    font-family: 'BPG Arial', 'DejaVu Sans', Arial, sans-serif;
}

/* Archive Button Section */
.tab-buttons {
    margin-top: 20px;
    text-align: center;
    padding: 15px 0;
}

.tab-buttons a {
    display: inline-block;
    padding: 12px 30px;
    background: #222;
    color: #ffcc00;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid #222;
}

.tab-buttons a:hover {
    background: #ffcc00;
    color: #222;
    border-color: #ffcc00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.tab-buttons a:active {
    transform: translateY(0);
}

/* Alternative light style for archive button */
.fpd-style-light + .tab-buttons a {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.fpd-style-light + .tab-buttons a:hover {
    background: white;
    color: #0073aa;
    border-color: #0073aa;
}
