/* Bus2Charter Rewards - Public Styles */

/* Reset and Base Styles */
.b2c-form-container,
.b2c-profile-container,
.b2c-shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Messages */
.b2c-messages {
    margin-bottom: 20px;
}

.b2c-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 10px;
    border-left: 4px solid;
}

.b2c-message-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.b2c-message-error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.b2c-message-info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.b2c-message-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* Breadcrumb */
.b2c-breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.b2c-breadcrumb a {
    color: #007cba;
    text-decoration: none;
}

.b2c-breadcrumb a:hover {
    text-decoration: underline;
}

/* Forms */
.b2c-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.b2c-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.b2c-form-header h2 {
    margin: 0 0 10px 0;
    color: #1d2327;
    font-size: 28px;
    font-weight: 600;
}

.b2c-form-header p {
    margin: 0;
    color: #646970;
    font-size: 16px;
}

.b2c-form-row {
    margin-bottom: 20px;
}

.b2c-form-group {
    margin-bottom: 15px;
}

.b2c-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #1d2327;
}

.b2c-form-group input,
.b2c-form-group select,
.b2c-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.b2c-form-group input:focus,
.b2c-form-group select:focus,
.b2c-form-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.b2c-form-group small {
    display: block;
    margin-top: 5px;
    color: #646970;
    font-size: 14px;
}

/* Checkbox Styles */
.b2c-checkbox-label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    font-weight: normal !important;
}

.b2c-checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin-right: 10px;
}

.b2c-checkmark {
    margin-left: 5px;
}

/* Buttons */
.b2c-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.b2c-btn-primary {
    background-color: #007cba;
    color: white;
}

.b2c-btn-primary:hover {
    background-color: #005a87;
}

.b2c-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.b2c-btn-secondary:hover {
    background-color: #545b62;
}

.b2c-btn-link {
    background: none;
    color: #007cba;
    padding: 5px 10px;
    text-decoration: underline;
}

.b2c-btn-link:hover {
    color: #005a87;
}

.b2c-btn-disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.b2c-btn-full {
    width: 100%;
}

.b2c-btn-loading {
    opacity: 0.7;
}

/* Form Footer */
.b2c-form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.b2c-form-footer a {
    color: #007cba;
    text-decoration: none;
}

.b2c-form-footer a:hover {
    text-decoration: underline;
}

/* Modals */
.b2c-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.b2c-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.b2c-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.b2c-modal-header h3 {
    margin: 0 0 10px 0;
    color: #1d2327;
    font-size: 24px;
}

.b2c-modal-header p {
    margin: 0;
    color: #646970;
}

.b2c-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.b2c-modal-close:hover {
    color: #000;
}

.b2c-modal .b2c-form {
    box-shadow: none;
    border-radius: 0;
}

.b2c-modal-actions {
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Profile Styles */
.b2c-profile-header {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.b2c-profile-avatar {
    margin-right: 20px;
}

.b2c-avatar {
    border-radius: 50%;
    border: 3px solid #007cba;
}

.b2c-profile-info {
    flex: 1;
}

.b2c-profile-info h1 {
    margin: 0 0 5px 0;
    color: #1d2327;
    font-size: 32px;
}

.b2c-profile-email,
.b2c-profile-phone {
    margin: 5px 0;
    color: #646970;
    font-size: 16px;
}

.b2c-profile-points {
    text-align: center;
}

.b2c-points-display {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    padding: 20px;
    border-radius: 8px;
    min-width: 120px;
}

.b2c-points-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
}

.b2c-points-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
}

/* Profile Content */
.b2c-profile-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.b2c-profile-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.b2c-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.b2c-section-header h2 {
    margin: 0;
    color: #1d2327;
    font-size: 20px;
}

.b2c-view-all {
    color: #007cba;
    text-decoration: none;
    font-size: 14px;
}

.b2c-view-all:hover {
    text-decoration: underline;
}

.b2c-section-content {
    padding: 20px 30px;
}

/* Transactions */
.b2c-transactions-list {
    padding: 20px 30px;
}

.b2c-transaction-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f1;
}

.b2c-transaction-item:last-child {
    border-bottom: none;
}

.b2c-transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
    background: #f8f9fa;
}

.b2c-transaction-details {
    flex: 1;
}

.b2c-transaction-description {
    font-weight: 500;
    color: #1d2327;
    margin-bottom: 2px;
}

.b2c-transaction-date {
    font-size: 14px;
    color: #646970;
}

.b2c-transaction-admin {
    font-size: 12px;
    color: #007cba;
}

.b2c-transaction-amount {
    font-weight: bold;
    font-size: 16px;
}

.b2c-transaction-amount.credit {
    color: #28a745;
}

.b2c-transaction-amount.debit {
    color: #dc3545;
}

/* Purchases */
.b2c-purchases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 30px;
}

.b2c-purchase-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.b2c-purchase-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.b2c-purchase-image {
    height: 150px;
    overflow: hidden;
}

.b2c-purchase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b2c-purchase-content {
    padding: 15px;
}

.b2c-purchase-content h3 {
    margin: 0 0 10px 0;
    color: #1d2327;
    font-size: 16px;
}

.b2c-purchase-points {
    color: #007cba;
    font-weight: bold;
    margin: 5px 0;
}

.b2c-purchase-vehicle {
    color: #646970;
    font-size: 14px;
    margin: 5px 0;
}

.b2c-purchase-date {
    color: #646970;
    font-size: 12px;
    margin: 5px 0 0 0;
}

/* Requests */
.b2c-requests-list {
    padding: 20px 30px;
}

.b2c-request-item {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f1;
}

.b2c-request-item:last-child {
    border-bottom: none;
}

.b2c-request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.b2c-request-header h4 {
    margin: 0;
    color: #1d2327;
    font-size: 18px;
}

.b2c-request-content p {
    margin: 10px 0;
    color: #646970;
}

.b2c-request-meta {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    font-size: 14px;
}

.b2c-request-type {
    background: #007cba;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.b2c-request-date {
    color: #646970;
}

.b2c-admin-response {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-top: 10px;
    border-left: 4px solid #007cba;
}

.b2c-admin-response strong {
    color: #1d2327;
}

/* Badges */
.b2c-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.b2c-badge-success {
    background-color: #d4edda;
    color: #155724;
}

.b2c-badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.b2c-badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Sidebar */
.b2c-sidebar-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.b2c-sidebar-widget h3 {
    margin: 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    color: #1d2327;
    font-size: 16px;
}

.b2c-quick-actions {
    padding: 20px;
}

.b2c-action-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    text-decoration: none;
    color: #1d2327;
    transition: all 0.3s ease;
}

.b2c-action-btn:hover {
    background: #e9ecef;
    text-decoration: none;
    color: #1d2327;
}

.b2c-action-icon {
    margin-right: 10px;
    font-size: 18px;
}

.b2c-account-info {
    padding: 20px;
}

.b2c-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f1;
}

.b2c-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.b2c-info-item label {
    font-weight: 500;
    color: #646970;
}

.b2c-info-item span {
    color: #1d2327;
}

.b2c-status-verified {
    color: #28a745;
}

/* Shop Styles */
.b2c-shop-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.b2c-shop-header h1 {
    margin: 0 0 10px 0;
    color: #1d2327;
    font-size: 36px;
}

.b2c-shop-header p {
    margin: 0 0 20px 0;
    color: #646970;
    font-size: 18px;
}

.b2c-user-points {
    display: inline-block;
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
}

.b2c-points-value {
    font-weight: bold;
    font-size: 18px;
}

/* Login Notice */
.b2c-login-notice {
    background: #fff;
    border: 2px solid #007cba;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.b2c-notice-content h3 {
    margin: 0 0 10px 0;
    color: #1d2327;
    font-size: 24px;
}

.b2c-notice-content p {
    margin: 0 0 20px 0;
    color: #646970;
}

.b2c-notice-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Shop Filters */
.b2c-shop-filters {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.b2c-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.b2c-filter-group label {
    font-weight: 500;
    color: #1d2327;
    white-space: nowrap;
}

.b2c-filter-group select,
.b2c-filter-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Products Grid */
.b2c-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.b2c-product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.b2c-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.b2c-product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.b2c-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b2c-no-image {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.b2c-no-image-icon {
    font-size: 48px;
    opacity: 0.5;
}

.b2c-product-content {
    padding: 20px;
}

.b2c-product-title {
    margin: 0 0 10px 0;
    color: #1d2327;
    font-size: 18px;
    font-weight: 600;
}

.b2c-product-description {
    margin: 0 0 15px 0;
    color: #646970;
    font-size: 14px;
    line-height: 1.5;
}

.b2c-product-points {
    margin: 15px 0;
}

.b2c-points-cost {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
}

/* Purchase Modal */
.b2c-purchase-details {
    padding: 20px 30px;
}

.b2c-purchase-product h4 {
    margin: 0 0 10px 0;
    color: #1d2327;
    font-size: 20px;
}

.b2c-purchase-cost {
    color: #007cba;
    font-weight: bold;
    font-size: 16px;
    margin: 0 0 20px 0;
}

.b2c-current-balance {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.b2c-current-balance p {
    margin: 5px 0;
    color: #1d2327;
}

.b2c-vehicle-selection {
    margin: 20px 0;
}

.b2c-vehicle-selection label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #1d2327;
}

.b2c-vehicle-selection select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Empty States */
.b2c-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #646970;
}

.b2c-empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.b2c-empty-state h3 {
    margin: 0 0 10px 0;
    color: #1d2327;
    font-size: 20px;
}

.b2c-empty-state p {
    margin: 0 0 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .b2c-form-container,
    .b2c-profile-container,
    .b2c-shop-container {
        padding: 10px;
    }
    
    .b2c-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .b2c-profile-content {
        grid-template-columns: 1fr;
    }
    
    .b2c-products-grid {
        grid-template-columns: 1fr;
    }
    
    .b2c-purchases-grid {
        grid-template-columns: 1fr;
    }
    
    .b2c-shop-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .b2c-filter-group {
        justify-content: space-between;
    }
    
    .b2c-notice-actions {
        flex-direction: column;
    }
    
    .b2c-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .b2c-modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .b2c-form {
        padding: 20px;
    }
    
    .b2c-profile-header {
        padding: 20px;
    }
    
    .b2c-shop-header {
        padding: 20px;
    }
    
    .b2c-shop-header h1 {
        font-size: 28px;
    }
    
    .b2c-profile-info h1 {
        font-size: 24px;
    }
    
    .b2c-points-number {
        font-size: 28px;
    }
}
