/* Photo Gallery Meta Box */
.mdp-photo-item {
    position: relative;
    display: inline-block;
    margin: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.mdp-photo-item img {
    display: block;
    max-width: 150px;
    height: auto;
}

.mdp-remove-photo {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: rgba(214, 54, 56, 0.9);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.2s;
}

.mdp-remove-photo:hover {
    background: #b32d2e;
}

/* Premium Admin Settings Layout */
.mdp-settings-wrap {
    margin: 20px 20px 0 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.mdp-settings-wrap h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d2327;
}

.mdp-settings-container {
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    min-height: 550px;
}

.mdp-settings-sidebar {
    width: 220px;
    background: #f6f7f7;
    border-right: 1px solid #dcdcde;
    flex-shrink: 0;
}

.mdp-settings-sidebar ul {
    margin: 0;
    padding: 10px 0;
    list-style: none;
}

.mdp-settings-sidebar li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid transparent;
    transition: all 0.2s;
}

.mdp-settings-sidebar li a:hover {
    background: #f0f0f1;
    color: #2271b1;
}

.mdp-settings-sidebar li.active a {
    background: #fff;
    color: #2271b1;
    border-left-color: #2271b1;
    font-weight: 600;
}

.mdp-settings-content {
    flex-grow: 1;
    padding: 30px;
    background: #fff;
}

.mdp-settings-tab-title {
    font-size: 20px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f1;
    color: #1d2327;
}

/* Dashboard Cards */
.mdp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.mdp-stat-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mdp-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.mdp-stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.mdp-stat-card .mdp-stat-val {
    font-size: 28px;
    font-weight: 700;
    color: #2271b1;
}

/* Shortcodes Copy Box */
.mdp-shortcode-box {
    display: flex;
    align-items: center;
    background: #f0f6fc;
    border: 1px solid #c2dbf4;
    padding: 10px 15px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    margin-bottom: 15px;
}

.mdp-shortcode-box code {
    background: none;
    padding: 0;
    color: #0b3b6f;
    flex-grow: 1;
}

.mdp-copy-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 11px;
    transition: background 0.2s;
}

.mdp-copy-btn:hover {
    background: #135e96;
}

/* Settings Form Tables */
.mdp-settings-form table.form-table {
    margin-top: 0;
}

.mdp-settings-form table.form-table th {
    width: 200px;
    font-weight: 600;
    color: #444;
}

.mdp-settings-form input[type="text"],
.mdp-settings-form input[type="number"],
.mdp-settings-form select,
.mdp-settings-form textarea {
    width: 100%;
    max-width: 450px;
    border-radius: 4px;
    border: 1px solid #8c8f94;
    padding: 6px 10px;
}

.mdp-settings-form input[type="number"] {
    max-width: 120px;
}

.mdp-settings-form textarea {
    height: 100px;
}

.mdp-settings-form input[type="checkbox"] {
    margin-top: 2px;
}

/* Filter Sortable Table */
.mdp-sortable-table th {
    font-weight: 600;
    background: #f6f7f7;
}

.mdp-sortable-table td {
    vertical-align: middle !important;
}

/* Logs Table */
.mdp-logs-table {
    border: 1px solid #dcdcde;
    width: 100%;
}

.mdp-logs-table th {
    background: #f6f7f7;
    font-weight: 600;
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #dcdcde;
}

.mdp-logs-table td {
    padding: 10px;
    border-bottom: 1px solid #f0f0f1;
}

.mdp-log-type-info { color: #2271b1; }
.mdp-log-type-warning { color: #dba617; font-weight: 600; }
.mdp-log-type-error { color: #d63638; font-weight: 600; }
.mdp-log-type-success { color: #00a32a; font-weight: 600; }

/* Frontend Grid & Cards Layout */
.models-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.model-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.model-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.model-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.model-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.model-price {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 3px;
    font-weight: 600;
}

.model-caption {
    padding: 12px;
}

.model-caption h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.model-caption p {
    margin: 0;
    font-size: 13px;
    color: #777;
}

.model-caption .age {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #f0f0f0;
    color: #333;
    padding: 1px 6px;
    font-size: 11px;
    border-radius: 10px;
}

/* Lightbox Modal styles */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
}

.gallery-modal.active {
    display: flex !important;
}

.gallery-modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.gallery-close:hover,
.gallery-close:focus {
    color: #bbb;
    text-decoration: none;
}

.gallery-prev,
.gallery-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background: none;
    border: none;
}

.gallery-next {
    right: 20px;
    border-radius: 3px 0 0 3px;
}

.gallery-prev {
    left: 20px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
