/* Public Styles for MboaHost Hosting Plugin */

.mbh-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mbh-dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.mbh-dashboard-header h2 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
}

.mbh-dashboard-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1em;
}

/* Tab Navigation */
.mbh-dashboard-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mbh-tab-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #666;
}

.mbh-tab-button:hover {
    background: #e9ecef;
    color: #333;
}

.mbh-tab-button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* Tab Content */
.mbh-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.mbh-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Overview Cards */
.mbh-overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.mbh-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #667eea;
}

.mbh-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mbh-card:nth-child(2) {
    border-left-color: #f093fb;
}

.mbh-card:nth-child(3) {
    border-left-color: #4facfe;
}

.mbh-card-icon {
    font-size: 2.5em;
    margin-right: 15px;
}

.mbh-card-content h3 {
    margin: 0;
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
}

.mbh-card-content p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 0.9em;
}

/* Orders List */
.mbh-orders-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mbh-orders-table table {
    width: 100%;
    border-collapse: collapse;
}

.mbh-orders-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.mbh-orders-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.mbh-orders-table tr:hover {
    background: #f8f9fa;
}

/* Services Grid */
.mbh-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mbh-service-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.mbh-service-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
}

.mbh-service-card h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.3em;
}

.mbh-service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mbh-service-header h4 {
    margin: 0;
    flex: 1;
}

.mbh-service-type {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
}

.mbh-service-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 15px;
}

.mbh-service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.mbh-service-features li {
    padding: 5px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.mbh-service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.mbh-order-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mbh-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.mbh-order-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Status Badges */
.mbh-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.mbh-status-active {
    background: #d4edda;
    color: #155724;
}

.mbh-status-pending-setup {
    background: #fff3cd;
    color: #856404;
}

.mbh-status-suspended {
    background: #f8d7da;
    color: #721c24;
}

.mbh-status-pending {
    background: #fff3cd;
    color: #856404;
}

.mbh-status-successful {
    background: #d4edda;
    color: #155724;
}

.mbh-status-failed {
    background: #f8d7da;
    color: #721c24;
}

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

.mbh-loading:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .mbh-dashboard {
        padding: 10px;
    }
    
    .mbh-dashboard-tabs {
        flex-direction: column;
    }
    
    .mbh-tab-button {
        margin-bottom: 5px;
    }
    
    .mbh-overview-cards {
        grid-template-columns: 1fr;
    }
    
    .mbh-card {
        flex-direction: column;
        text-align: center;
    }
    
    .mbh-card-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .mbh-services-grid {
        grid-template-columns: 1fr;
    }
    
    .mbh-orders-table {
        overflow-x: auto;
    }
    
    .mbh-orders-table table {
        min-width: 600px;
    }
}

/* Error and Success Messages */
.mbh-message {
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

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

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

.mbh-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}