/* Puntr Admin Styles */

#puntr_provider_basic_info .form-table,
#puntr_provider_physical_details .form-table,
#puntr_provider_pricing .form-table,
#puntr_provider_additional_info .form-table {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 20px;
}

#puntr_provider_basic_info .form-table th,
#puntr_provider_physical_details .form-table th,
#puntr_provider_pricing .form-table th,
#puntr_provider_additional_info .form-table th {
    width: 200px;
    font-weight: 600;
}

.puntr-metabox-description {
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

/* Pricing inputs */
#puntr_provider_pricing input[type="number"] {
    width: 100px;
}

/* Make select boxes consistent */
#puntr_provider_basic_info select,
#puntr_provider_physical_details select {
    min-width: 200px;
}

/* Dashboard styles */
.puntr-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.puntr-dashboard > div {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 20px;
}

.puntr-dashboard h2,
.puntr-dashboard h3 {
    margin-top: 0;
}

.puntr-quick-links ul,
.puntr-stats ul {
    list-style: disc;
    margin-left: 20px;
}

.puntr-quick-links a {
    text-decoration: none;
}

.puntr-quick-links a:hover {
    text-decoration: underline;
}

/* Settings page styles */
/* Settings header now uses the unified puntr-dashboard-header class */

.puntr-settings-content {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    border-radius: 4px;
}

.puntr-settings-sections {
    padding: 20px;
}

.puntr-settings-sections h2 {
    font-size: 18px;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.puntr-settings-sections h2:first-child {
    margin-top: 0;
}

.puntr-settings-sections .form-table {
    margin-top: 0;
}

.puntr-settings-sections .form-table th {
    width: 250px;
    font-weight: 600;
}

.puntr-settings-footer {
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.puntr-settings-footer .button-primary.large {
    font-size: 16px;
    padding: 8px 24px;
    height: auto;
}

.puntr-version {
    margin: 0;
    color: #666;
    font-size: 13px;
}

.puntr-version a {
    color: #2271b1;
    text-decoration: none;
}

.puntr-version a:hover {
    text-decoration: underline;
}

/* Dashboard improvements */
.puntr-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 20px 0;
    padding: 20px 30px;
    background: #1e2938;
    color: #fff;
    border-radius: 4px;
}


.puntr-dashboard-header .puntr-logo {
    max-height: 32px;
    width: auto;
}

.puntr-dashboard-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 400;
    color: #fff;
    line-height: 1.2;
}

/* Pro badge styles */
.puntr-pro-badge {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 10px;
}

/* Pro features section */
.puntr-pro-features {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.puntr-pro-features h3 {
    color: white;
}

.puntr-pro-features ul {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.puntr-pro-features li {
    padding: 8px 0;
    font-size: 15px;
}

.puntr-pro-features .button {
    background: white;
    color: #667eea;
    border: none;
    font-weight: 600;
    padding: 10px 20px;
    font-size: 14px;
}

.puntr-pro-features .button:hover {
    background: #f0f0f0;
    color: #764ba2;
}

/* Info Box */
.puntr-info-box {
    background: #f0f8ff;
    border: 1px solid #2196F3;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.puntr-info-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1976D2;
}

.puntr-info-box ul {
    margin: 0;
    list-style: none;
    padding-left: 0;
}

.puntr-info-box li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.puntr-info-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

/* Provider pages header */
.puntr-provider-header-wrapper {
    margin: 0 0 20px 0;
}

.puntr-provider-header-wrapper .puntr-dashboard-header {
    margin: 0;
}

/* Hide default WordPress admin title on provider pages */
body.post-type-puntr_provider .wrap > h1 {
    display: none;
}

/* Help section in settings */
.puntr-help-section {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
}

.puntr-help-section h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #1e2938;
}

.puntr-help-section h3:first-child {
    margin-top: 0;
}

.puntr-help-section code {
    display: block;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    margin: 10px 0;
    font-family: monospace;
    font-size: 13px;
}

.puntr-help-section ol,
.puntr-help-section ul {
    margin-left: 20px;
}

.puntr-help-section li {
    margin-bottom: 8px;
}

/* Gallery metabox styles */
#puntr-gallery-images {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#puntr-gallery-images li {
    position: relative;
    width: 150px;
    height: 150px;
    border: 1px solid #ddd;
    list-style: none;
}

#puntr-gallery-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#puntr-gallery-images .remove-gallery-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff0000;
    color: #fff;
    text-decoration: none;
    width: 25px;
    height: 25px;
    text-align: center;
    line-height: 25px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
}

#puntr-gallery-images .remove-gallery-image:hover {
    background: #cc0000;
}

#puntr-gallery-images.sortable li {
    cursor: move;
}