body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: #f0f0f1;
    color: #3c434a;
    margin: 0;
    padding: 0;
}

/* Admin Layout */
.wp-admin-bar {
    background: #1d2327;
    height: 32px;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 13px;
}

.wp-body {
    display: flex;
    min-height: calc(100vh - 32px);
}

.wp-menu {
    width: 160px;
    background: #1d2327;
    color: #fff;
    padding-top: 10px;
}

.wp-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-menu li {
    padding: 10px 12px;
    cursor: pointer;
}

.wp-menu li:hover, .wp-menu li.active {
    background: #2271b1;
    color: #fff;
}

.wp-content {
    flex: 1;
    padding: 20px;
}

h1 {
    font-size: 23px;
    font-weight: 400;
    margin: 0 0 20px 0;
}

h2 {
    font-size: 1.3em;
    margin: 1em 0;
}

/* Forms & Inputs */
.form-table {
    width: 100%;
    border-collapse: collapse;
}

.form-table th {
    text-align: left;
    padding: 20px 10px 20px 0;
    width: 200px;
    vertical-align: top;
}

.form-table td {
    padding: 15px 10px;
}

input[type="text"], input[type="password"], select {
    border: 1px solid #8c8f94;
    border-radius: 4px;
    padding: 0 8px;
    line-height: 2;
    min-height: 30px;
    width: 100%;
    max-width: 400px;
}

.button {
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    line-height: 2.15384615;
    min-height: 30px;
    margin: 0;
    padding: 0 10px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    -webkit-appearance: none;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;
}

.button-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.button-primary:hover {
    background: #135e96;
    border-color: #135e96;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    width: 90%;
    max-width: 800px;
    height: 80%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-toolbar {
    padding: 10px 20px;
    background: #f6f7f7;
    border-bottom: 1px solid #ddd;
    display: flex;
    gap: 10px;
}

.modal-content-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.media-item {
    border: 1px solid #ddd;
    cursor: pointer;
    position: relative;
}

.media-item:hover {
    border-color: #2271b1;
}

.media-item.selected {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px #2271b1;
}

.media-thumb {
    height: 100px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.media-info {
    padding: 8px;
    font-size: 12px;
}

.media-title {
    font-weight: bold;
    margin-bottom: 4px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    text-align: right;
    background: #f6f7f7;
}

/* Gutenberg Specific */
.gutenberg-editor {
    display: flex;
    height: calc(100vh - 32px);
}

.editor-canvas {
    flex: 1;
    background: #fff;
    padding: 40px;
    overflow-y: auto;
    display: flex;
    justify-content: center;
}

.block-placeholder {
    width: 600px;
    border: 1px dashed #ccc;
    padding: 40px;
    text-align: center;
    background: #f9f9f9;
}

.block-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.editor-sidebar {
    width: 280px;
    background: #fff;
    border-left: 1px solid #ddd;
    padding: 15px;
    font-size: 13px;
}

.sidebar-panel {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.sidebar-panel h3 {
    margin: 0 0 15px 0;
    font-size: 13px;
    text-transform: uppercase;
    color: #1e1e1e;
}

/* Elementor Specific */
.elementor-ui {
    display: flex;
    height: 100vh;
}

.elementor-panel {
    width: 300px;
    background: #fff;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

.elementor-header {
    background: #93003c;
    color: #fff;
    padding: 10px;
    font-weight: bold;
}

.elementor-controls {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.elementor-control-section {
    margin-bottom: 20px;
}

.elementor-label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 600;
}

.elementor-canvas {
    flex: 1;
    background: #eee;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.elementor-widget-placeholder {
    width: 100%;
    max-width: 800px;
    background: #fff;
    border: 2px solid #2271b1;
    padding: 20px;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* WooCommerce Specific */
.woo-meta-box {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin-top: 20px;
}

.woo-tabs {
    float: left;
    width: 20%;
    background: #fafafa;
    border-right: 1px solid #eee;
    margin: 0;
    padding: 0;
    list-style: none;
    min-height: 300px;
}

.woo-tabs li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.woo-tabs li.active {
    background: #fff;
    font-weight: bold;
    border-right: 1px solid #fff;
    margin-right: -1px;
}

.woo-panel {
    float: right;
    width: 79%;
    padding: 10px;
    display: none;
}

.woo-panel.active {
    display: block;
}

/* Utility */
.hidden {
    display: none !important;
}

.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
