/* Pressable Site Manager - Modern ZipWP Style Frontend */

* {
    box-sizing: border-box;
}

.psm-zipwp-dashboard {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Sidebar */
.psm-sidebar {
    width: 260px;
    background: #1a202c;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.psm-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #2d3748;
}

.psm-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.psm-logo-icon {
    font-size: 28px;
}

.psm-logo-text {
    font-size: 18px;
    font-weight: 700;
}

.psm-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #2d3748;
    border-radius: 8px;
}

.psm-user-info img {
    border-radius: 50%;
}

.psm-username {
    font-size: 14px;
    font-weight: 600;
}

.psm-sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.psm-nav-section-title {
    padding: 15px 20px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #718096;
    letter-spacing: 0.5px;
}

.psm-nav-section {
    margin-bottom: 10px;
}

.psm-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.psm-nav-item:hover {
    background: #2d3748;
    color: #fff;
}

.psm-nav-item.active {
    background: #2d3748;
    color: #fff;
    border-left: 3px solid #4299e1;
}

.psm-nav-icon {
    font-size: 18px;
}

.psm-nav-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.psm-nav-badge {
    background: #4299e1;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.psm-sidebar-footer {
    padding: 20px;
    border-top: 1px solid #2d3748;
}

.psm-plan-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.psm-plan-label {
    color: #718096;
}

.psm-plan-value {
    font-weight: 600;
}

/* Main Content */
.psm-main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px 40px;
}

.psm-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.psm-content-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.psm-dropdown-arrow {
    margin-left: 5px;
    font-size: 10px;
}

/* Tab Content */
.psm-tab-content {
    background: transparent;
}

.psm-tab-pane {
    display: none;
}

.psm-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Overview */
.psm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.psm-stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
}

.psm-stat-icon {
    font-size: 48px;
}

.psm-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1;
    margin-bottom: 5px;
}

.psm-stat-label {
    font-size: 14px;
    color: #718096;
}

/* Getting Started */
.psm-getting-started {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    margin-bottom: 30px;
}

.psm-getting-started-content h2 {
    font-size: 28px;
    margin: 0 0 15px 0;
}

.psm-getting-started-content p {
    font-size: 16px;
    margin: 0 0 25px 0;
    opacity: 0.9;
}

.psm-illustration {
    text-align: center;
    opacity: 0.9;
}

/* Buttons */
.psm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.psm-btn-primary {
    background: #4299e1;
    color: #fff;
}

.psm-btn-primary:hover {
    background: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.psm-btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.psm-btn-secondary:hover {
    background: #cbd5e0;
}

.psm-btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.psm-btn-icon {
    font-size: 18px;
}

/* Page Header */
.psm-page-header {
    margin-bottom: 30px;
}

.psm-page-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 10px 0;
}

.psm-page-header p {
    font-size: 16px;
    color: #718096;
    margin: 0;
}

/* Forms */
.psm-form-modern {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.psm-form-section {
    padding: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.psm-form-section:last-child {
    border-bottom: none;
}

.psm-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.psm-form-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.psm-form-row:last-child {
    margin-bottom: 0;
}

.psm-form-col-6 {
    grid-column: span 6;
}

.psm-form-col-12 {
    grid-column: span 12;
}

.psm-form-modern label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.psm-input, .psm-select, select.psm-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background: #fff;
}

.psm-input:focus, .psm-select:focus, select.psm-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.psm-help {
    display: block;
    font-size: 13px;
    color: #718096;
    margin-top: 5px;
    font-style: italic;
}

.psm-input-group {
    display: flex;
    gap: 10px;
}

.psm-input-group .psm-input {
    flex: 1;
}

.psm-input-group .psm-btn {
    white-space: nowrap;
}

/* Plugin Checkboxes Grid */
.psm-plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.psm-plugin-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.psm-plugin-checkbox:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.psm-plugin-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.psm-plugin-checkbox input[type="checkbox"]:checked {
    accent-color: #4299e1;
}

.psm-plugin-checkbox.psm-plugin-required {
    background: #ebf8ff;
    border-color: #4299e1;
}

.psm-plugin-checkbox.psm-plugin-required input[type="checkbox"] {
    opacity: 0.5;
    cursor: not-allowed;
}

.psm-form-actions {
    padding: 30px;
    background: #f7fafc;
    border-radius: 0 0 12px 12px;
}

/* Sections */
.psm-section {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.psm-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 20px 0;
}

/* Site List */
.psm-recent-sites h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.psm-sites-list {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.psm-site-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.psm-site-list-item:last-child {
    border-bottom: none;
}

.psm-site-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.psm-site-info a {
    font-size: 14px;
    color: #4299e1;
    text-decoration: none;
}

/* Badges */
.psm-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.psm-badge-live {
    background: #c6f6d5;
    color: #22543d;
}

.psm-badge-staging {
    background: #fef5e7;
    color: #975a16;
}

.psm-badge-sandbox {
    background: #e9d8fd;
    color: #553c9a;
}

/* Info Box */
.psm-info-box {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.psm-info-box code {
    background: #e2e8f0;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
}

/* Horizontal Tabs */
.psm-tabs-horizontal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.psm-tabs-nav {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    padding: 0 20px;
}

.psm-tab-btn {
    padding: 15px 25px;
    border: none;
    background: transparent;
    color: #718096;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.psm-tab-btn.active {
    color: #4299e1;
    border-bottom-color: #4299e1;
}

.psm-tabs-content {
    padding: 25px;
}

.psm-tab-panel {
    display: none;
}

.psm-tab-panel.active {
    display: block;
}

/* Form Inline */
.psm-form-inline {
    display: flex;
    gap: 10px;
}

.psm-form-inline .psm-input {
    flex: 1;
}

/* Messages */
.psm-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

.psm-message.success {
    display: block;
    background: #c6f6d5;
    color: #22543d;
    border-left: 4px solid #38a169;
}

.psm-message.error {
    display: block;
    background: #fed7d7;
    color: #742a2a;
    border-left: 4px solid #e53e3e;
}

/* Empty States */
.psm-empty-message {
    text-align: center;
    padding: 40px;
    color: #a0aec0;
    font-size: 14px;
}

/* Modal */
.psm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.psm-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.psm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
}

.psm-modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.psm-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #718096;
}

.psm-modal-close:hover {
    color: #2d3748;
}

.psm-modal form {
    padding: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .psm-sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .psm-main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .psm-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .psm-getting-started {
        flex-direction: column;
        text-align: center;
    }
    
    .psm-form-col-6 {
        grid-column: span 12;
    }
    
    .psm-content-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* Grid Layouts */
.psm-plugins-grid, .psm-themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.psm-plugin-card, .psm-theme-card {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.psm-plugin-card h4, .psm-theme-card h4 {
    font-size: 14px;
    margin: 0 0 10px 0;
}

/* Table Container */
.psm-table-container {
    overflow-x: auto;
}

.psm-table {
    width: 100%;
    border-collapse: collapse;
}

.psm-table th {
    background: #f7fafc;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
}

.psm-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

/* Loading Spinner */
.psm-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #e2e8f0;
    border-top-color: #4299e1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Global Loader Overlay */
.psm-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.psm-loader-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    min-width: 300px;
}

.psm-loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #4299e1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

.psm-loader-message {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

/* Profile Stats */
.psm-stats-list {
    padding: 0;
}

.psm-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.psm-stat-row:last-child {
    border-bottom: none;
}

.psm-stat-label {
    font-weight: 600;
    color: #2d3748;
}

.psm-stat-value {
    color: #718096;
}

/* Site Dashboard */
.psm-site-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.psm-site-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
}

.psm-site-link {
    color: #4299e1;
    text-decoration: none;
    font-size: 16px;
}

.psm-site-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.psm-info-card {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.psm-info-label {
    font-size: 13px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.psm-info-value {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
}

.psm-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

