/**
 * Frontend-Styles für Inklusionet Barrier-Free Travel Offers
 * Identisches Design wie FBM QR-Codes Premium
 */

/* Error Messages */
.ibto-offer-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

/* Dashboard */
.ibto-offer-dashboard {
    margin: 20px auto;
    max-width: 1200px;
    width: 100%;
}

.ibto-offer-dashboard-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow: hidden;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Tabs */
.ibto-offer-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.ibto-offer-tabs li {
    flex: 1;
    margin: 0;
}

.ibto-offer-tab {
    display: block;
    padding: 15px 20px;
    text-align: center;
    text-decoration: none;
    color: #6c757d;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.ibto-offer-tab:hover {
    background: #fff;
    color: #495057;
}

.ibto-offer-tab.is-active {
    background: #fff;
    color: #007bff;
    border-bottom-color: #007bff;
}

/* Tab Content */
.ibto-offer-tab-content {
    padding: 30px;
}

.ibto-offer-tab-panel {
    display: none;
}

.ibto-offer-tab-panel.is-active {
    display: block;
}

/* Cards */
.ibto-offer-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 20px;
}

.ibto-offer-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    color: #212529;
}

.ibto-offer-subtitle {
    margin: 20px 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #495057;
}

/* Forms */
.ibto-offer-form {
    max-width: 100%;
}

.ibto-offer-form-group {
    margin-bottom: 20px;
}

.ibto-offer-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ibto-offer-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.ibto-offer-input,
.ibto-offer-select,
.ibto-offer-textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.ibto-offer-input:focus,
.ibto-offer-select:focus,
.ibto-offer-textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.ibto-offer-textarea {
    resize: vertical;
    min-height: 100px;
}

.ibto-offer-form-actions {
    margin-top: 30px;
    text-align: right;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background: #0056b3;
    color: #fff;
}

.btn-round {
    border-radius: 25px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
    color: #fff;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #c82333;
    color: #fff;
}

/* Filters */
.ibto-offer-filters {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ibto-offer-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.ibto-offer-filter-group {
    display: flex;
    flex-direction: column;
}

.ibto-offer-filter-group label {
    margin-bottom: 5px;
    font-weight: 500;
}

.ibto-offer-filter-actions {
    display: flex;
    gap: 10px;
}

/* List & Grid */
.ibto-offer-list {
    margin-top: 20px;
}

.ibto-offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ibto-offer-item {
    display: flex;
    flex-direction: column;
}

.ibto-offer-item-info {
    flex: 1;
}

.ibto-offer-item-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

.ibto-offer-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
}

.ibto-offer-meta-type,
.ibto-offer-meta-action {
    padding: 4px 8px;
    background: #e9ecef;
    border-radius: 4px;
    color: #495057;
}

.ibto-offer-meta-action {
    background: #ffc107;
    color: #856404;
    font-weight: 600;
}

.ibto-offer-item-price {
    margin-bottom: 10px;
    font-size: 16px;
    color: #495057;
}

.ibto-offer-item-price strong {
    color: #007bff;
    font-size: 18px;
}

.ibto-offer-discount {
    color: #dc3545;
    font-weight: 600;
    margin-left: 5px;
}

.ibto-offer-item-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

.ibto-offer-feature {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
}

.ibto-offer-feature i {
    color: #007bff;
}

.ibto-offer-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.ibto-offer-item-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ibto-offer-item-actions .btn i {
    font-size: 12px;
}

/* Empty State */
.ibto-offer-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

/* Modal */
.ibto-offer-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.ibto-offer-modal.show {
    display: flex;
}

.ibto-offer-modal-content {
    background-color: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 100000;
}

.ibto-offer-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ibto-offer-modal-title {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.ibto-offer-modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ibto-offer-modal-close:hover {
    color: #333;
}

.ibto-offer-modal-body {
    padding: 20px;
}

.ibto-offer-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.ibto-offer-modal-details {
    line-height: 1.6;
}

.ibto-offer-modal-details h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

.ibto-offer-modal-details p {
    margin-bottom: 10px;
    color: #6c757d;
}

/* Status Badge */
.ibto-offer-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
    text-transform: uppercase;
}

.ibto-offer-status-trash {
    background: #dc3545;
    color: #fff;
}

.ibto-offer-status-draft {
    background: #ffc107;
    color: #856404;
}

.ibto-offer-status-private {
    background: #6c757d;
    color: #fff;
}

.ibto-offer-item-meta-date {
    margin-top: 10px;
    margin-bottom: 10px;
    color: #6c757d;
    font-size: 13px;
}

/* Messages */
.ibto-offer-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
}

.ibto-offer-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ibto-offer-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .ibto-offer-tabs {
        flex-direction: column;
    }
    
    .ibto-offer-tab {
        border-bottom: 1px solid #e9ecef;
        border-left: 3px solid transparent;
    }
    
    .ibto-offer-tab.is-active {
        border-left-color: #007bff;
        border-bottom-color: #e9ecef;
    }
    
    .ibto-offer-form-row,
    .ibto-offer-filter-row {
        grid-template-columns: 1fr;
    }
    
    .ibto-offer-grid {
        grid-template-columns: 1fr;
    }
    
    .ibto-offer-modal-content {
        width: 95%;
        max-height: 95vh;
    }
}


