/* Account Pages Styles */

/* General Styles */
.woocommerce-message {
    background: #d4edda !important;
    color: #155724 !important;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.woocommerce-error {
    background: #f8d7da !important;
    color: #721c24 !important;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Form Styles */
.ucm-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.ucm-form h3 {
    margin-top: 0;
}

.ucm-form-field {
    margin-bottom: 15px;
}

.ucm-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.ucm-form-field input[type="text"],
.ucm-form-field input[type="number"],
.ucm-form-field input[type="file"],
.ucm-form-field textarea,
.ucm-form-field select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ucm-form-field textarea {
    min-height: 100px;
}

/* Button Styles */
.ucm-button, button.ucm-button {
    padding: 10px 20px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.ucm-button:hover {
    background: #005a87;
}

.ucm-button.success {
    background: #28a745;
}

.ucm-button.success:hover {
    background: #218838;
}

.ucm-button.danger {
    background: #dc3545;
}

.ucm-button.danger:hover {
    background: #c82333;
}

.ucm-button.secondary {
    background: #6c757d;
}

.ucm-button.secondary:hover {
    background: #5a6268;
}

/* Table Styles */
.ucm-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.ucm-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.ucm-table th {
    padding: 12px;
    text-align: left;
    font-weight: bold;
}

.ucm-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.ucm-table tr:hover {
    background: #f8f9fa !important;
}

/* Pagination Styles */
.ucm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 30px 0;
    text-align: center;
}

.ucm-pagination a,
.ucm-pagination span {
    padding: 8px 12px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

.ucm-pagination a:hover {
    background: #007cba;
    color: white;
}

.ucm-pagination .current {
    background: #007cba;
    color: white;
    font-weight: bold;
}

/* Image Grid */
.ucm-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.ucm-image-item {
    position: relative;
}

.ucm-image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
}

.ucm-image-item p {
    text-align: center;
    margin: 5px 0;
    font-size: 12px;
}

/* Filter & Search Bar */
.ucm-filter-bar {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ucm-filter-content {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.ucm-search-form {
    flex: 1;
    min-width: 200px;
    display: flex;
    gap: 5px;
}

.ucm-search-form input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ucm-search-form button {
    padding: 8px 16px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.ucm-filter-buttons {
    display: flex;
    gap: 5px;
}

.ucm-filter-buttons a {
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
}

.ucm-filter-buttons a.active {
    background: #007cba;
    color: white;
}

.ucm-filter-buttons a:not(.active) {
    background: #f0f0f0;
    color: #333;
}

/* Empty State */
.ucm-empty-state {
    background: #f8f9fa;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    margin-top: 20px;
}

.ucm-empty-state p {
    font-size: 16px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .ucm-table {
        display: block;
        overflow-x: auto;
    }
    
    .ucm-filter-content {
        flex-direction: column;
    }
    
    .ucm-search-form {
        width: 100%;
    }
    
    .ucm-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

