/* Panel Ana Stili */
.woo-panel-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f0f0f1;
    margin: -20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* WooCommerce Arka Plan Düzeltmesi */
.wp-list-table tr td,
.wp-list-table tr th,
.status-publish,
.status-publish *,
article.status-publish,
.type-product.status-publish {
    background-color: transparent !important;
    color: inherit !important;
}

.striped > tbody > :nth-child(odd),
.striped > tbody > :nth-child(even) {
    background-color: #fff !important;
}

.striped > tbody > tr:hover {
    background-color: #f8fafc !important;
}

/* WooCommerce Status Override */
.status-publish,
.products .status-publish,
.woocommerce .status-publish,
.post-type-archive-product .status-publish,
.tax-product_cat .status-publish {
    background: transparent !important;
    color: inherit !important;
}

/* Extra Override for Legacy Themes */
body .status-publish,
#main .status-publish,
#content .status-publish,
.site-main .status-publish {
    background: transparent !important;
    color: inherit !important;
}

/* Sidebar Stiller */
.woo-panel-sidebar {
    width: 250px;
    background: #2c3e50;
    color: #fff;
    padding: 20px 0;
}

.woo-panel-logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.woo-panel-logo img {
    max-width: 100%;
    height: auto;
}

.woo-panel-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.woo-panel-navigation li {
    margin: 0;
    padding: 0;
}

.woo-panel-navigation a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
}

.woo-panel-navigation a:hover,
.woo-panel-navigation li.active a {
    background: rgba(255,255,255,0.1);
}

.woo-panel-navigation .dashicons {
    margin-right: 10px;
}

/* Ana İçerik Alanı */
.woo-panel-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.woo-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.woo-panel-header h1 {
    margin: 0;
    font-size: 24px;
    color: #2c3e50;
}

.woo-panel-header-right {
    display: flex;
    align-items: center;
}

.user-name {
    margin-left: 10px;
    color: #2c3e50;
}

/* Dashboard Kartları */
.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: #3498db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.stat-icon .dashicons {
    color: #fff;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.stat-content h3 {
    margin: 0 0 5px;
    font-size: 14px;
    color: #7f8c8d;
}

.stat-number {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

/* Tablo Stiller */
.products-table,
.orders-table {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-collapse: collapse;
}

.products-table th,
.orders-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
}

.products-table td,
.orders-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

/* Form Stiller */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group.full-width {
    flex: 0 0 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dce4ec;
    border-radius: 4px;
    font-size: 14px;
}

/* Ürün Görselleri */
.product-images-wrapper {
    margin-top: 10px;
}

#product-images-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.product-image {
    position: relative;
    border: 1px solid #dce4ec;
    border-radius: 4px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #e74c3c;
}

/* Modal Stiller */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: #fff;
    margin: 50px auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
}

/* Buton Stiller */
.button {
    display: inline-block;
    padding: 8px 16px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.button:hover {
    background: #2980b9;
    color: #fff;
}

.button.delete-product {
    background: #e74c3c;
}

.button.delete-product:hover {
    background: #c0392b;
}

/* Filtre Stiller */
.products-filters,
.orders-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.products-filters input,
.products-filters select,
.orders-filters input,
.orders-filters select {
    padding: 8px 12px;
    border: 1px solid #dce4ec;
    border-radius: 4px;
    font-size: 14px;
}

/* Widget Stiller */
.widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.widget h2 {
    margin: 0 0 20px;
    font-size: 18px;
    color: #2c3e50;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .woo-panel-wrapper {
        flex-direction: column;
    }

    .woo-panel-sidebar {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
    }

    .products-filters,
    .orders-filters {
        flex-wrap: wrap;
    }
}
