
/* Business Central Frontend Styles */
.bc-frontend-dashboard {
    max-width: 1200px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.bc-frontend-dashboard h3 {
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.bc-dashboard-content {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.bc-search-section {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.bc-search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.bc-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}

.bc-button-primary {
    background: #0073aa;
    color: white;
}

.bc-button-primary:hover {
    background: #005a87;
}

.bc-button:not(.bc-button-primary) {
    background: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

.bc-button:not(.bc-button-primary):hover {
    background: #e1e1e1;
}

.bc-items-section {
    padding: 20px;
}

.bc-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.bc-items-header h4 {
    margin: 0;
    color: #333;
}

.bc-items-container {
    min-height: 200px;
}

.bc-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.bc-items-list {
    display: grid;
    gap: 15px;
}

.bc-item {
    padding: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    background: #fafafa;
    transition: all 0.2s ease;
}

.bc-item:hover {
    background: #f0f8ff;
    border-color: #0073aa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bc-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.bc-item-no {
    font-weight: bold;
    color: #0073aa;
    font-size: 18px;
}

.bc-item-type {
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.bc-item-description {
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
}

.bc-item-price {
    color: #2e7d32;
    font-weight: bold;
    font-size: 16px;
}

.bc-item-inventory {
    color: #666;
    font-size: 14px;
}

.bc-pagination {
    margin-top: 30px;
    text-align: center;
}

.bc-pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.bc-current-page {
    padding: 10px 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: bold;
}

.bc-page-btn {
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.bc-page-btn:hover {
    background: #005a87;
}

.bc-page-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.bc-no-items, .bc-error {
    text-align: center;
    padding: 40px;
    color: #666;
    background: #f8f9fa;
    border-radius: 4px;
    margin: 20px 0;
}

.bc-error {
    background: #ffeaa7;
    color: #d63031;
    border: 1px solid #fdcb6e;
}

.bc-message {
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.bc-message.bc-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.bc-message.bc-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Simple items shortcode styles */
.bc-simple-items-list {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.bc-simple-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.bc-simple-item:last-child {
    border-bottom: none;
}

.bc-simple-item:hover {
    background: #f8f9fa;
}

/* Responsive design */
@media (max-width: 768px) {
    .bc-search-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bc-search-input {
        min-width: auto;
        width: 100%;
    }
    
    .bc-items-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .bc-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bc-pagination-controls {
        flex-direction: column;
    }
}

@media (min-width: 769px) {
    .bc-items-list {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}
