/**
 * SRM Property Manager - Admin Panel Styles
 * 
 * Styles for the WordPress admin and frontend admin panel
 * 
 * @package SRM_Property_Manager
 * @since 2.3.0
 */

/* === ADMIN WRAP === */
.srm-admin-wrap {
    max-width: 1200px;
    margin: 18px;
}

.srm-admin-panel {
    background: #fff;
    border: 1px solid #e6e6e6;
    padding: 12px;
    border-radius: 8px;
}

/* === TABLES === */
.srm-table {
    width: 100%;
    border-collapse: collapse;
}

.srm-table th,
.srm-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.wp-editor-container {
    background: #fff;
}

/* === TABS === */
.srm-admin-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 15px;
}

.srm-admin-tabs a {
    padding: 8px 15px;
    text-decoration: none;
    color: #0073aa;
    border: 1px solid transparent;
}

.srm-admin-tabs a.nav-tab-active {
    background: #fff;
    border-color: #ccc #ccc #fff;
    border-bottom-color: #fff;
    margin-bottom: -1px;
}

/* === BUTTONS === */
.srm-action-btn {
    margin-right: 5px !important;
}

/* === CHARTS === */
.srm-chart-container {
    background: #fff;
    border: 1px solid #e6e6e6;
    padding: 20px;
    border-radius: 8px;
}

/* === GALLERY - PAYMENT & PROPERTY === */
.srm-payment-gallery,
.srm-gallery-preview-sortable {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.srm-payment-gallery .srm-gallery-item {
    position: relative;
    width: 100px;
    height: 100px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.srm-gallery-preview-sortable .srm-gallery-item {
    position: relative;
    width: 120px;
    height: 120px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    cursor: grabbing;
}

.srm-payment-gallery .srm-gallery-item img,
.srm-gallery-preview-sortable .srm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.srm-payment-gallery .srm-gallery-item .srm-gallery-item-remove,
.srm-gallery-preview-sortable .srm-gallery-item .srm-gallery-item-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
}

.srm-payment-gallery .srm-gallery-item .srm-gallery-item-file {
    padding: 5px;
    font-size: 10px;
    line-height: 1.2;
    word-break: break-all;
}

.srm-payment-gallery .srm-gallery-item .srm-gallery-item-file .dashicons {
    font-size: 40px;
    width: 100%;
    height: 40px;
    text-align: center;
    display: block;
    margin-bottom: 5px;
}

.srm-gallery-placeholder {
    width: 120px;
    height: 120px;
    background: #f0f0f0;
    border: 2px dashed #ccc;
}

/* === FRONTEND ADMIN === */
.srm-admin-frontend-wrap .srm-admin-wrap {
    margin: 0;
}

.srm-admin-frontend-wrap h1 {
    font-size: 24px;
    margin-top: 0;
}

.srm-admin-frontend-nav {
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 10px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.srm-admin-frontend-nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.srm-admin-frontend-nav a {
    display: inline-block;
    padding: 8px 12px;
    background: #f0f0f0;
    border-radius: 6px;
    text-decoration: none;
    color: #005a9c;
}

.srm-admin-frontend-nav a.active {
    background: #005a9c;
    color: #fff;
}

.srm-admin-frontend-wrap .form-table {
    width: 100%;
}

.srm-admin-frontend-wrap .form-table th {
    width: 180px;
}

.srm-admin-frontend-wrap .form-table input.regular-text,
.srm-admin-frontend-wrap .form-table textarea.large-text,
.srm-admin-frontend-wrap .form-table select {
    width: 100%;
    max-width: 400px;
}

.srm-admin-frontend-wrap .button-primary {
    background: #004aad;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
}

.srm-admin-frontend-wrap .notice {
    margin-top: 15px;
}

/* === PROOF ICONS === */
.srm-proof-link {
    display: inline-block;
    text-decoration: none;
    margin: 0 2px;
}

.srm-proof-link .dashicons {
    font-size: 28px;
    vertical-align: middle;
}

.srm-proof-link .srm-proof-thumb {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 4px;
    vertical-align: middle;
}
