/* ==========================================================================
   Website Maintenance - PTI: Admin Modern UI Stylesheet
   ========================================================================== */

:root {
    --ptiwmm-primary: #3b82f6;
    --ptiwmm-primary-hover: #2563eb;
    --ptiwmm-success: #10b981;
    --ptiwmm-danger: #ef4444;
    --ptiwmm-dark: #0f172a;
    --ptiwmm-dark-card: #1e293b;
    --ptiwmm-border: #e2e8f0;
    --ptiwmm-bg: #f8fafc;
    --ptiwmm-text-main: #1e293b;
    --ptiwmm-text-muted: #64748b;
    --ptiwmm-radius-sm: 6px;
    --ptiwmm-radius-md: 10px;
    --ptiwmm-radius-lg: 14px;
    --ptiwmm-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --ptiwmm-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
    --ptiwmm-shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08);
}

.ptiwmm-wrap {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 20px 20px 40px 0;
    color: var(--ptiwmm-text-main);
    box-sizing: border-box;
}

.ptiwmm-wrap * {
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Header Bar
   -------------------------------------------------------------------------- */
.ptiwmm-header {
    background: #ffffff;
    border-radius: var(--ptiwmm-radius-lg);
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--ptiwmm-shadow-md);
    border: 1px solid var(--ptiwmm-border);
    margin-bottom: 24px;
}

.ptiwmm-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ptiwmm-brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.ptiwmm-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--ptiwmm-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ptiwmm-brand-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: #eff6ff;
    color: var(--ptiwmm-primary);
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid #bfdbfe;
    letter-spacing: 0.5px;
}

.ptiwmm-subtitle {
    margin: 2px 0 0 0;
    font-size: 13px;
    color: var(--ptiwmm-text-muted);
}

.ptiwmm-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Status Pill in Header */
.ptiwmm-status-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border-radius: 40px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.ptiwmm-status-pill.is-active {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.ptiwmm-status-pill.is-inactive {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

.ptiwmm-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #94a3b8;
    transition: all 0.25s ease;
}

.ptiwmm-status-pill.is-active .ptiwmm-status-dot {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    animation: ptiwmmPulse 2s infinite;
}

@keyframes ptiwmmPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.ptiwmm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: var(--ptiwmm-radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    line-height: 1.4;
}

.ptiwmm-btn svg {
    flex-shrink: 0;
}

.ptiwmm-btn-primary {
    background: var(--ptiwmm-primary);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.ptiwmm-btn-primary:hover {
    background: var(--ptiwmm-primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
}

.ptiwmm-btn-secondary {
    background: #ffffff;
    border-color: var(--ptiwmm-border);
    color: var(--ptiwmm-text-main);
}

.ptiwmm-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--ptiwmm-text-main);
}

.ptiwmm-btn-outline {
    background: transparent;
    border-color: #cbd5e1;
    color: var(--ptiwmm-text-muted);
}

.ptiwmm-btn-outline:hover {
    background: #f8fafc;
    border-color: var(--ptiwmm-primary);
    color: var(--ptiwmm-primary);
}

.ptiwmm-btn-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: var(--ptiwmm-danger);
}

.ptiwmm-btn-danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.ptiwmm-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.ptiwmm-btn-lg {
    padding: 12px 26px;
    font-size: 15px;
}

.ptiwmm-btn-icon {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--ptiwmm-text-muted);
    border-radius: var(--ptiwmm-radius-sm);
    transition: all 0.2s ease;
}

.ptiwmm-btn-icon:hover {
    color: var(--ptiwmm-danger);
    background: #fef2f2;
}

/* --------------------------------------------------------------------------
   Dashboard Layout (Sidebar + Content)
   -------------------------------------------------------------------------- */
.ptiwmm-dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}

/* Sidebar */
.ptiwmm-sidebar {
    background: #ffffff;
    border-radius: var(--ptiwmm-radius-lg);
    box-shadow: var(--ptiwmm-shadow-md);
    border: 1px solid var(--ptiwmm-border);
    padding: 14px;
    position: sticky;
    top: 50px;
}

.ptiwmm-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ptiwmm-tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 14px;
    border: none;
    background: transparent;
    border-radius: var(--ptiwmm-radius-sm);
    color: var(--ptiwmm-text-muted);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    position: relative;
}

.ptiwmm-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--ptiwmm-text-muted);
    transition: all 0.2s ease;
}

.ptiwmm-tab-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
    display: block;
}

.ptiwmm-tab-btn:hover .ptiwmm-tab-icon {
    color: var(--ptiwmm-text-main);
    transform: scale(1.08);
}

.ptiwmm-tab-btn.active .ptiwmm-tab-icon {
    color: var(--ptiwmm-primary);
}

.ptiwmm-tab-label {
    flex: 1;
}

.ptiwmm-tab-count {
    background: #f1f5f9;
    color: var(--ptiwmm-text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
}

.ptiwmm-tab-btn:hover {
    background: #f8fafc;
    color: var(--ptiwmm-text-main);
}

.ptiwmm-tab-btn.active {
    background: #eff6ff;
    color: var(--ptiwmm-primary);
    font-weight: 700;
}

.ptiwmm-tab-btn.active .ptiwmm-tab-count {
    background: #dbeafe;
    color: var(--ptiwmm-primary);
}

.ptiwmm-sidebar-footer {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 11.5px;
    color: var(--ptiwmm-text-muted);
}

.ptiwmm-version-info {
    margin: 0 0 6px 0;
    font-weight: 600;
}

.ptiwmm-client-ip-info {
    margin: 0;
}

.ptiwmm-client-ip-info code {
    background: #f1f5f9;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 11px;
}

/* --------------------------------------------------------------------------
   Content Area & Cards
   -------------------------------------------------------------------------- */
.ptiwmm-tab-pane {
    display: none;
    animation: ptiwmmFadeIn 0.3s ease;
}

.ptiwmm-tab-pane.active {
    display: block;
}

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

.ptiwmm-card {
    background: #ffffff;
    border-radius: var(--ptiwmm-radius-lg);
    box-shadow: var(--ptiwmm-shadow-md);
    border: 1px solid var(--ptiwmm-border);
    margin-bottom: 24px;
    overflow: hidden;
}

.ptiwmm-card-header {
    padding: 20px 28px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.ptiwmm-card-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ptiwmm-header-actions-group {
    display: flex;
    gap: 8px;
}

.ptiwmm-card-header h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--ptiwmm-dark);
}

.ptiwmm-card-desc {
    margin: 0;
    font-size: 13px;
    color: var(--ptiwmm-text-muted);
}

.ptiwmm-card-body {
    padding: 24px 28px;
}

/* --------------------------------------------------------------------------
   Form Fields & Controls
   -------------------------------------------------------------------------- */
.ptiwmm-field-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid #f8fafc;
    align-items: start;
}

.ptiwmm-field-row:first-child {
    padding-top: 0;
}

.ptiwmm-field-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.ptiwmm-field-label label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ptiwmm-dark);
    display: block;
    margin-bottom: 4px;
}

.ptiwmm-hint {
    font-size: 12px;
    color: var(--ptiwmm-text-muted);
    display: block;
    line-height: 1.45;
}

.ptiwmm-input,
.ptiwmm-select,
.ptiwmm-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 13.5px;
    border: 1px solid var(--ptiwmm-border);
    border-radius: var(--ptiwmm-radius-sm);
    color: var(--ptiwmm-text-main);
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

.ptiwmm-input:focus,
.ptiwmm-select:focus,
.ptiwmm-textarea:focus {
    border-color: var(--ptiwmm-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.ptiwmm-input-sm {
    max-width: 140px;
}

.ptiwmm-input-md {
    max-width: 320px;
}

.ptiwmm-code-font {
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 12.5px;
}

.ptiwmm-multi-select {
    width: 100%;
    min-height: 140px;
    border: 1px solid var(--ptiwmm-border);
    border-radius: var(--ptiwmm-radius-sm);
    padding: 8px;
    font-size: 13px;
}

.ptiwmm-field-note {
    font-size: 12px;
    color: var(--ptiwmm-text-muted);
    margin: 8px 0 0 0;
}

/* Copy Input Group */
.ptiwmm-input-copy-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* --------------------------------------------------------------------------
   Modern Toggle Switch
   -------------------------------------------------------------------------- */
.ptiwmm-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    vertical-align: middle;
}

.ptiwmm-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ptiwmm-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .25s ease;
    border-radius: 30px;
}

.ptiwmm-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .25s ease;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.ptiwmm-switch input:checked + .ptiwmm-slider {
    background-color: var(--ptiwmm-primary);
}

.ptiwmm-switch input:checked + .ptiwmm-slider:before {
    transform: translateX(22px);
}

.ptiwmm-switch-sm {
    width: 38px;
    height: 20px;
}

.ptiwmm-switch-sm .ptiwmm-slider:before {
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
}

.ptiwmm-switch-sm input:checked + .ptiwmm-slider:before {
    transform: translateX(18px);
}

/* --------------------------------------------------------------------------
   Radio Cards (Mode selection: 503 vs 200)
   -------------------------------------------------------------------------- */
.ptiwmm-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.ptiwmm-radio-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--ptiwmm-border);
    border-radius: var(--ptiwmm-radius-sm);
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s ease;
}

.ptiwmm-radio-card:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.ptiwmm-radio-card.selected {
    border-color: var(--ptiwmm-primary);
    background: #eff6ff;
    box-shadow: 0 0 0 1px var(--ptiwmm-primary);
}

.ptiwmm-radio-card input {
    margin-top: 3px;
}

.ptiwmm-radio-card-content strong {
    display: block;
    font-size: 13.5px;
    color: var(--ptiwmm-dark);
    margin-bottom: 4px;
}

.ptiwmm-radio-card-content p {
    margin: 0;
    font-size: 12px;
    color: var(--ptiwmm-text-muted);
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Segmented Controls
   -------------------------------------------------------------------------- */
.ptiwmm-segmented-control {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: var(--ptiwmm-radius-sm);
    border: 1px solid var(--ptiwmm-border);
}

.ptiwmm-segmented-control label {
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ptiwmm-text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.ptiwmm-segmented-control label input {
    display: none;
}

.ptiwmm-segmented-control label.active {
    background: #ffffff;
    color: var(--ptiwmm-primary);
    box-shadow: var(--ptiwmm-shadow-sm);
}

/* --------------------------------------------------------------------------
   Checkboxes & Pills Grid
   -------------------------------------------------------------------------- */
.ptiwmm-checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ptiwmm-checkbox-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid var(--ptiwmm-border);
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ptiwmm-checkbox-pill:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.ptiwmm-checkbox-pill input:checked + span {
    color: var(--ptiwmm-primary);
    font-weight: 600;
}

.ptiwmm-btn-row {
    margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Media Uploader
   -------------------------------------------------------------------------- */
.ptiwmm-media-uploader {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ptiwmm-media-preview {
    width: 140px;
    height: 80px;
    border: 1.5px dashed var(--ptiwmm-border);
    border-radius: var(--ptiwmm-radius-sm);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.ptiwmm-media-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ptiwmm-media-preview.is-empty {
    color: var(--ptiwmm-text-muted);
    font-size: 11.5px;
}

.ptiwmm-favicon-preview {
    width: 48px;
    height: 48px;
}

.ptiwmm-banner-preview {
    width: 220px;
    height: 120px;
}

.ptiwmm-banner-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ptiwmm-media-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --------------------------------------------------------------------------
   Gradient Presets Grid
   -------------------------------------------------------------------------- */
.ptiwmm-gradient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.ptiwmm-gradient-card {
    height: 64px;
    border-radius: var(--ptiwmm-radius-sm);
    display: flex;
    align-items: flex-end;
    padding: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

.ptiwmm-gradient-card input {
    display: none;
}

.ptiwmm-gradient-name {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.ptiwmm-gradient-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ptiwmm-gradient-card.selected {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px var(--ptiwmm-primary);
}

/* --------------------------------------------------------------------------
   Range Slider Group
   -------------------------------------------------------------------------- */
.ptiwmm-range-group {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 320px;
}

.ptiwmm-range {
    flex: 1;
    cursor: pointer;
}

.ptiwmm-range-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--ptiwmm-dark);
    min-width: 44px;
}

/* --------------------------------------------------------------------------
   Color Pickers Grid
   -------------------------------------------------------------------------- */
.ptiwmm-color-pickers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.ptiwmm-color-item label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ptiwmm-text-muted);
    display: block;
    margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   Template Selector Grid
   -------------------------------------------------------------------------- */
.ptiwmm-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.ptiwmm-template-card {
    background: #ffffff;
    border: 2px solid var(--ptiwmm-border);
    border-radius: var(--ptiwmm-radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.ptiwmm-template-card:hover {
    transform: translateY(-3px);
    border-color: #93c5fd;
    box-shadow: var(--ptiwmm-shadow-lg);
}

.ptiwmm-template-card.is-active {
    border-color: var(--ptiwmm-primary);
    box-shadow: 0 0 0 2px var(--ptiwmm-primary);
}

.ptiwmm-template-preview-wrap {
    position: relative;
    height: 180px;
    background: #0f172a;
    overflow: hidden;
}

.ptiwmm-template-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ptiwmm-template-card:hover .ptiwmm-template-img {
    transform: scale(1.05);
}

.ptiwmm-template-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ptiwmm-template-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ptiwmm-template-card:hover .ptiwmm-template-overlay {
    opacity: 1;
}

.ptiwmm-template-info {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ptiwmm-template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.ptiwmm-template-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.ptiwmm-template-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ptiwmm-dark);
}

.ptiwmm-active-tag {
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.ptiwmm-template-tagline {
    font-size: 12px;
    font-weight: 600;
    color: var(--ptiwmm-primary);
    margin: 0 0 6px 0;
}

.ptiwmm-template-desc {
    font-size: 12px;
    color: var(--ptiwmm-text-muted);
    margin: 0;
    line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Social Links Inputs Grid
   -------------------------------------------------------------------------- */
.ptiwmm-social-inputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.ptiwmm-social-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--ptiwmm-border);
    border-radius: var(--ptiwmm-radius-sm);
    padding: 2px 10px 2px 8px;
}

.ptiwmm-social-icon {
    color: var(--ptiwmm-text-muted);
    display: flex;
    align-items: center;
}

.ptiwmm-social-item .ptiwmm-input {
    border: none;
    padding: 8px 4px;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Subscribers DataTable
   -------------------------------------------------------------------------- */
.ptiwmm-table-responsive {
    overflow-x: auto;
}

.ptiwmm-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.ptiwmm-data-table th {
    background: #f8fafc;
    padding: 12px 16px;
    font-weight: 700;
    color: var(--ptiwmm-dark);
    border-bottom: 1px solid var(--ptiwmm-border);
}

.ptiwmm-data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--ptiwmm-text-main);
}

.ptiwmm-data-table tr:hover td {
    background: #f8fafc;
}

.text-right {
    text-align: right;
}

.ptiwmm-empty-state {
    text-align: center;
    padding: 40px 20px;
}

.ptiwmm-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #94a3b8;
}

.ptiwmm-empty-icon svg {
    width: 44px;
    height: 44px;
    stroke: #94a3b8;
}

.ptiwmm-empty-state h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
}

.ptiwmm-empty-state p {
    margin: 0;
    font-size: 13px;
    color: var(--ptiwmm-text-muted);
}

/* --------------------------------------------------------------------------
   Sticky Footer Bar
   -------------------------------------------------------------------------- */
.ptiwmm-footer-bar {
    position: sticky;
    bottom: 20px;
    background: #ffffff;
    border-radius: var(--ptiwmm-radius-lg);
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--ptiwmm-border);
    margin-top: 30px;
    z-index: 99;
}

.ptiwmm-footer-info {
    font-size: 13px;
    color: var(--ptiwmm-text-muted);
}

/* --------------------------------------------------------------------------
   Toast Notifications
   -------------------------------------------------------------------------- */
.ptiwmm-toast {
    position: fixed;
    top: 40px;
    right: 40px;
    background: #1e293b;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: var(--ptiwmm-radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999999;
    opacity: 0;
    transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.ptiwmm-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.ptiwmm-toast.success {
    background: #065f46;
    border: 1px solid #10b981;
}

.ptiwmm-toast.error {
    background: #7f1d1d;
    border: 1px solid #ef4444;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 900px) {
    .ptiwmm-dashboard-layout {
        grid-template-columns: 1fr;
    }
    .ptiwmm-sidebar {
        position: static;
    }
    .ptiwmm-field-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .ptiwmm-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .ptiwmm-header-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}
