/* Container & Header */
.dejunk-db-wrap {
max-width: 1200px;
margin-top: 20px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.dejunk-header {
display: flex;
flex-direction: column;
margin-bottom: 25px;
}

.dejunk-header h1 {
font-size: 28px;
font-weight: 600;
margin: 0 0 15px 0;
color: #1d2327;
}

/* Modernized Notice */
.dejunk-notice {
border-left: 4px solid #f56e28;
background: #fff;
border-radius: 4px;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
padding: 12px 20px;
margin: 0;
display: flex;
flex-direction: column;
gap: 5px;
}
.dejunk-notice p {
margin: 0;
font-size: 14px;
color: #3c434a;
}
.dejunk-notice .dashicons {
color: #f56e28;
margin-right: 5px;
}

/* Layout Grids */
.dejunk-top-panel {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 24px;
margin-bottom: 24px;
}
.dejunk-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(48%, 1fr));
gap: 24px;
align-items: start;
align-items: stretch;
}
@media (max-width: 900px) {
.dejunk-top-panel,
.dejunk-grid {
grid-template-columns: 1fr;
}
}

/* SaaS-like Cards */
.dejunk-card {
background: #fff;
border: 1px solid #dcdce1;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0,0,0,0.03);
overflow: hidden;
transition: box-shadow 0.3s ease;
}
.dejunk-card:hover {
box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.dejunk-card-header {
background: #fff;
border-bottom: 1px solid #f0f0f1;
padding: 16px 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.dejunk-card-notice {
background: #fff;
border-top: 1px solid #f0f0f1;
padding: 0px 20px;
}
.dejunk-card-notice p{
    margin-bottom: 0;
}
.dejunk-card-header h2,
.dejunk-card-header h3 {
margin: 0;
font-size: 16px;
font-weight: 600;
color: #1d2327;
display: flex;
align-items: center;
gap: 10px;
}
.dejunk-card-header .dashicons {
color: #2271b1; /* Brand accent for icons */
}
.dejunk-group-desc {
font-size: 13px;
color: #646970;
background: #f0f0f1;
padding: 4px 10px;
border-radius: 20px;
}

/* Master Switch Card (Hero Style) */
.dejunk-master-card {
background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
border: none;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
}
.dejunk-master-card .dejunk-card-body {
text-align: center;
padding: 40px 20px;
}
.dejunk-master-card h2 {
color: #fff;
font-size: 22px;
margin: 10px 0;
}
.dejunk-master-card p {
color: #e0f0fa;
font-size: 14px;
margin-bottom: 25px;
}
.dejunk-master-card .dashicons-superhero {
color: #fff;
font-size: 48px;
width: 48px;
height: 48px;
opacity: 0.9;
}
.dashicons-plus-alt2:before{
color: white !important;
}
.button.button-hero {
display: inline-flex;
align-items: center;
gap: 6px; /* space between icon and text */
}

.button.button-hero .dashicons {
margin: 0; /* remove inline margins */
line-height: 1;
}
.dashicons .dashicons-plus-alt2:before{
color:white !important;
}
.dejunk-master-card .button-hero {
background: #fff;
color: #2271b1;
border: none;
font-weight: 600;
font-size: 15px;
padding: 10px 28px 12px;
border-radius: 6px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
transition: transform 0.2s, box-shadow 0.2s;
}
.dejunk-master-card .button-hero:hover {
background: #f6f7f7;
color: #135e96;
transform: translateY(-2px);
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* Clean Tables (List style) */
.dejunk-compact-table {
border: none !important;
box-shadow: none !important;
margin: 0 !important;
border-collapse: collapse;
}
.dejunk-compact-table th {
background: #fcfcfc;
border-bottom: 2px solid #f0f0f1;
font-weight: 600;
color: #50575e;
text-transform: uppercase;
font-size: 11px;
letter-spacing: 0.5px;
padding: 12px 20px;
}
.dejunk-compact-table td {
padding: 14px 20px;
vertical-align: middle;
border-bottom: 1px solid #f0f0f1;
color: #3c434a;
}
.dejunk-compact-table tbody tr {
transition: background-color 0.2s ease;
}
.dejunk-compact-table tbody tr:hover {
background: #fcfcfc;
}
.dejunk-compact-table tbody tr:last-child td {
border-bottom: none;
}

/* Pill Badges */
.dejunk-badge {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 4px 10px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
line-height: 1;
}
.dejunk-badge-gray { background: #f0f0f1; color: #3c434a; }
.dejunk-badge-warning { background: #fef0f0; color: #d63638; } /* Shifted to softer red/orange */
.dejunk-badge-success { background: #edf8f0; color: #008a20; }

/* Buttons & Actions */
.dejunk-actions {
display: flex;
gap: 8px;
justify-content: flex-end;
}
.dejunk-btn-danger {
color: #d63638 !important;
border-color: #d63638 !important;
background: transparent !important;
}
.dejunk-btn-danger:hover {
background: #d63638 !important;
color: #fff !important;
border-color: #d63638 !important;
}
.button-small {
border-radius: 4px;
}

/* AJAX Details Nested Area */
.dejunk-details-row {
background-color: #f8f9f9 !important;
}
.dejunk-details-content {
padding: 0 20px 20px 20px !important;
border-top: none !important;
border-bottom: 1px solid #f0f0f1;
}
.dejunk-details-content table {
margin-top: 0;
border: 1px solid #dcdce1;
border-radius: 6px;
background: #fff;
box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.dejunk-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dejunk-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.dejunk-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    z-index: 100000;
}

.dejunk-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.dejunk-modal-header h2 {
    margin: 0;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dejunk-modal-header h2 .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #2271b1;
}

.dejunk-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.dejunk-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.dejunk-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    max-height: calc(80vh - 130px);
}

.dejunk-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    text-align: right;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.dejunk-modal-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .dejunk-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .dejunk-modal-body {
        max-height: calc(90vh - 130px);
    }
}