/* Post DuplicateX Admin Styles */
.postdx-admin-wrapper {
    max-width: 80%;
    margin: 20px auto 0;
    color: #3c434a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Header Styles */
.postdx-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
    border-radius: 8px;
    padding: 20px 30px;
    margin-bottom: 25px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.postdx-header-content h1 {
    color: white;
    margin: 0;
    padding: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.postdx-header-description {
    margin: 8px 0 0;
    font-size: 15px;
    opacity: 0.9;
}

.postdx-header-badge {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 500;
}

/* Layout Styles */
.postdx-admin-container {
    margin-top: 20px;
}

.postdx-admin-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin: 0;
}

.postdx-admin-content {
    flex: 1;
    min-width: 65%;
}

.postdx-admin-sidebar {
    width: 28%;
    min-width: 300px;
}

/* Card Styles */
.postdx-admin-card,
.postdx-admin-sidebar-widget {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e4e7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    overflow: hidden;
}

.postdx-card-header,
.postdx-widget-header {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f1;
    background-color: #f9f9f9;
}

.postdx-card-icon,
.postdx-widget-icon {
    margin-right: 12px;
}

.postdx-card-icon .dashicons,
.postdx-widget-icon .dashicons {
    color: #3a7bd5;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.postdx-card-header h2,
.postdx-widget-header h3 {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.postdx-card-content,
.postdx-widget-content {
    padding: 24px;
}

/* Form Styles */
.postdx-form-group {
    margin-bottom: 24px;
}

.postdx-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.postdx-form-col {
    flex: 1;
    padding: 0 12px;
    min-width: 250px;
}

.postdx-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.postdx-form-control {
    position: relative;
}

.postdx-form-help {
    color: #868686;
    font-size: 13px;
    margin: 6px 0 0;
    font-style: italic;
}

/* Input Styles */
.postdx-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 15px;
    margin-bottom: 5px;
}

.postdx-checkbox-item {
    display: flex;
    align-items: center;
    margin: 3px 0;
}

.postdx-checkbox-item input[type="checkbox"] {
    margin-right: 8px;
}

.postdx-select {
    width: 100%;
    max-width: 350px;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
}

.postdx-text {
    width: 100%;
    max-width: 350px;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Button Styles */
.postdx-submit-container {
    padding: 5px 0;
}

.postdx-submit-button {
    background: #3a7bd5 !important;
    border-color: #3a7bd5 !important;
    box-shadow: 0 2px 5px rgba(58, 123, 213, 0.3) !important;
    padding: 5px 20px !important;
    height: auto !important;
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.postdx-submit-button:hover {
    background: #2d6bc9 !important;
    border-color: #2d6bc9 !important;
}

.postdx-button {
    display: inline-block;
    margin: 5px 0;
    text-align: center;
    background: #3a7bd5;
    color: white;
    border-color: #3a7bd5;
    transition: all 0.2s ease;
}

.postdx-button:hover {
    background: #2d6bc9;
    border-color: #2d6bc9;
}

.postdx-button-outline {
    background: transparent;
    color: #3a7bd5;
    border: 1px solid #3a7bd5;
}

.postdx-button-outline:hover {
    background: rgba(58, 123, 213, 0.1);
    color: #2d6bc9;
}

.postdx-button-full {
    display: block;
    width: 100%;
}

.postdx-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

/* Sidebar Widgets */
.postdx-features {
    margin-top: 15px;
}

.postdx-feature {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.postdx-feature .dashicons {
    color: #3a7bd5;
    margin-right: 8px;
}

.postdx-rating {
    margin: 10px 0;
}

.postdx-rating .dashicons {
    color: #ffb900;
    width: 18px;
    height: 18px;
    font-size: 18px;
}

/* Footer Styles */
.postdx-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    padding: 15px 0;
    border-top: 1px solid #e2e4e7;
    color: #606a73;
    font-size: 13px;
}

.postdx-footer a {
    color: #3a7bd5;
    text-decoration: none;
}

.postdx-footer-links {
    display: flex;
    gap: 15px;
}

/* Responsive Styles */
@media screen and (max-width: 1100px) {
    .postdx-admin-content,
    .postdx-admin-sidebar {
        width: 100%;
        min-width: 100%;
    }
    
    .postdx-admin-grid {
        flex-direction: column;
    }
    
    .postdx-footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .postdx-footer-links {
        justify-content: center;
    }
}

@media screen and (max-width: 782px) {
    .postdx-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .postdx-header-badge {
        margin-top: 10px;
    }
    
    .postdx-form-row {
        flex-direction: column;
    }
    
    .postdx-checkbox-group {
        flex-direction: column;
    }
}

/* Active State Styles */
tr.active {
    background-color: #f0f7ff;
}

/* Custom Transitions */
.postdx-admin-card,
.postdx-admin-sidebar-widget,
.postdx-button,
input, 
select {
    transition: all 0.2s ease;
}