/* ============================================
   WAD Point Manager Theme - Premium Web App UI
   ============================================ */

/* ---- Global Body Reset ---- */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.wpm-body {
    background: var(--wpm-gray-50);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --wpm-primary: #EE751B;
    --wpm-primary-light: #F5933F;
    --wpm-primary-dark: #D4630F;
    --wpm-primary-50: #FFF5ED;
    --wpm-primary-100: #FFE8D5;
    --wpm-secondary: #F5933F;
    --wpm-success: #10b981;
    --wpm-success-light: #d1fae5;
    --wpm-warning: #f59e0b;
    --wpm-warning-light: #fef3c7;
    --wpm-danger: #ef4444;
    --wpm-danger-light: #fee2e2;
    --wpm-gray-50: #f9fafb;
    --wpm-gray-100: #f3f4f6;
    --wpm-gray-200: #e5e7eb;
    --wpm-gray-300: #d1d5db;
    --wpm-gray-400: #9ca3af;
    --wpm-gray-500: #6b7280;
    --wpm-gray-600: #4b5563;
    --wpm-gray-700: #374151;
    --wpm-gray-800: #1f2937;
    --wpm-gray-900: #111827;
    --wpm-radius: 16px;
    --wpm-radius-sm: 10px;
    --wpm-radius-xs: 6px;
    --wpm-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --wpm-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --wpm-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --wpm-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --wpm-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
.wpm-app *,
.wpm-app *::before,
.wpm-app *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.wpm-app {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 20px 60px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    color: var(--wpm-gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- App Header ---- */
.wpm-app-header {
    padding: 32px 0 24px;
    margin-bottom: 8px;
}

.wpm-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.wpm-greeting {
    font-size: 14px;
    color: var(--wpm-gray-500);
    font-weight: 500;
}

.wpm-company-name {
    font-size: 26px;
    font-weight: 800;
    color: var(--wpm-gray-900);
    letter-spacing: -0.02em;
}

.wpm-header-date {
    font-size: 13px;
    color: var(--wpm-gray-400);
    font-weight: 500;
}

.wpm-logout-link {
    font-size: 13px;
    color: var(--wpm-gray-400);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid var(--wpm-gray-200);
    border-radius: 8px;
    transition: var(--wpm-transition);
}

.wpm-logout-link:hover {
    color: var(--wpm-gray-600);
    border-color: var(--wpm-gray-300);
    background: var(--wpm-gray-50);
}

/* ---- Navigation ---- */
.wpm-nav {
    display: flex;
    gap: 4px;
    background: var(--wpm-gray-100);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 28px;
}

.wpm-nav-item {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--wpm-gray-500);
    text-decoration: none;
    transition: var(--wpm-transition);
    cursor: pointer;
}

.wpm-nav-item:hover {
    color: var(--wpm-gray-700);
    background: rgba(255,255,255,0.6);
}

.wpm-nav-item.active {
    color: var(--wpm-gray-900);
    background: #fff;
    box-shadow: var(--wpm-shadow);
}

/* ---- Hero Balance Card ---- */
.wpm-hero-card {
    background: linear-gradient(135deg, var(--wpm-primary) 0%, #F5933F 50%, #FBBD7E 100%);
    border-radius: 20px;
    padding: 36px 32px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(238, 117, 27, 0.3);
}

.wpm-hero-card::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.wpm-hero-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.wpm-hero-label {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.85;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.wpm-hero-value {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.wpm-hero-value .wpm-unit {
    font-size: 20px;
    font-weight: 600;
    opacity: 0.8;
    margin-left: 4px;
}

.wpm-hero-sub {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.wpm-hero-sub-item {
    font-size: 13px;
    opacity: 0.9;
}

.wpm-hero-sub-item strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-top: 2px;
}

/* ---- Stat Cards Grid ---- */
.wpm-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.wpm-stat-card {
    background: #fff;
    border-radius: var(--wpm-radius);
    padding: 22px;
    box-shadow: var(--wpm-shadow);
    border: 1px solid var(--wpm-gray-100);
    transition: var(--wpm-transition);
    position: relative;
    overflow: hidden;
}

.wpm-stat-card:hover {
    box-shadow: var(--wpm-shadow);
    transform: none;
}

.wpm-stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
}

.wpm-stat-card.wpm-card-granted::after { background: linear-gradient(90deg, #10b981, #34d399); }
.wpm-stat-card.wpm-card-consumed::after { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.wpm-stat-card.wpm-card-expiring::after { background: linear-gradient(90deg, #ef4444, #f87171); }

.wpm-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 18px;
}

.wpm-card-granted .wpm-stat-icon { background: var(--wpm-success-light); color: var(--wpm-success); }
.wpm-card-consumed .wpm-stat-icon { background: var(--wpm-warning-light); color: var(--wpm-warning); }
.wpm-card-expiring .wpm-stat-icon { background: var(--wpm-danger-light); color: var(--wpm-danger); }

.wpm-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--wpm-gray-900);
    letter-spacing: -0.02em;
    line-height: 1;
}

.wpm-stat-value .wpm-unit-sm {
    font-size: 14px;
    font-weight: 600;
    color: var(--wpm-gray-400);
    margin-left: 2px;
}

.wpm-stat-label {
    font-size: 12px;
    color: var(--wpm-gray-500);
    margin-top: 6px;
    font-weight: 500;
}

/* ---- Next Grant Info ---- */
.wpm-next-grant {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--wpm-primary-50);
    border: 1px solid var(--wpm-primary-100);
    border-radius: var(--wpm-radius-sm);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.wpm-next-grant-icon {
    width: 42px;
    height: 42px;
    background: var(--wpm-primary);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.wpm-next-grant-text {
    font-size: 13px;
    color: var(--wpm-gray-600);
}

.wpm-next-grant-date {
    font-size: 18px;
    font-weight: 700;
    color: var(--wpm-primary-dark);
    margin-top: 2px;
}

/* ---- Section Container ---- */
.wpm-section {
    background: #fff;
    border-radius: var(--wpm-radius);
    box-shadow: var(--wpm-shadow);
    border: 1px solid var(--wpm-gray-100);
    margin-bottom: 20px;
    overflow: hidden;
}

.wpm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
}

.wpm-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--wpm-gray-900);
}

.wpm-section-link {
    font-size: 13px;
    color: var(--wpm-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--wpm-transition);
}

.wpm-section-link:hover {
    color: var(--wpm-primary-dark);
}

/* ---- Task List (Dashboard) ---- */
.wpm-task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-top: 1px solid var(--wpm-gray-100);
    transition: var(--wpm-transition);
}

.wpm-task-item:hover {
    background: transparent;
}

.wpm-task-info {
    flex: 1;
    min-width: 0;
}

.wpm-task-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--wpm-gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wpm-task-meta {
    font-size: 12px;
    color: var(--wpm-gray-400);
    margin-top: 3px;
}

.wpm-task-status {
    flex-shrink: 0;
    margin-left: 16px;
}

/* ---- Status Pills ---- */
.wpm-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.wpm-status-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.wpm-status-pending {
    background: var(--wpm-gray-100);
    color: var(--wpm-gray-600);
}
.wpm-status-pending::before { background: var(--wpm-gray-400); }

.wpm-status-progress {
    background: #dbeafe;
    color: #1d4ed8;
}
.wpm-status-progress::before { background: #3b82f6; }

.wpm-status-review {
    background: var(--wpm-warning-light);
    color: #b45309;
}
.wpm-status-review::before { background: var(--wpm-warning); }

.wpm-status-revision {
    background: #fce7f3;
    color: #be185d;
}
.wpm-status-revision::before { background: #ec4899; }

.wpm-status-completed {
    background: var(--wpm-success-light);
    color: #065f46;
}
.wpm-status-completed::before { background: var(--wpm-success); }

/* ---- Point History Page ---- */
.wpm-page-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--wpm-gray-900);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.wpm-balance-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--wpm-primary) 0%, #F5933F 100%);
    color: #fff;
    border-radius: var(--wpm-radius);
    padding: 24px 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(238, 117, 27, 0.25);
}

.wpm-balance-banner-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.wpm-balance-banner-value {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.wpm-balance-banner-value .wpm-unit {
    font-size: 16px;
    opacity: 0.8;
}

/* Table */
.wpm-table-container {
    background: #fff;
    border-radius: var(--wpm-radius);
    box-shadow: var(--wpm-shadow);
    border: 1px solid var(--wpm-gray-100);
    overflow: hidden;
}

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

.wpm-table thead {
    background: var(--wpm-gray-50);
}

.wpm-table th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--wpm-gray-500);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--wpm-gray-200);
}

.wpm-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--wpm-gray-100);
    font-size: 14px;
    color: var(--wpm-gray-700);
}

.wpm-table tbody tr {
    transition: var(--wpm-transition);
}

.wpm-table tbody tr:hover {
    background: transparent;
}

.wpm-table tbody tr:last-child td {
    border-bottom: none;
}

/* Type Tags */
.wpm-type-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.wpm-type-grant {
    background: var(--wpm-success-light);
    color: #065f46;
}

.wpm-type-consume {
    background: #dbeafe;
    color: #1e40af;
}

.wpm-type-adjust {
    background: var(--wpm-warning-light);
    color: #92400e;
}

.wpm-type-expire {
    background: var(--wpm-danger-light);
    color: #991b1b;
}

.wpm-positive {
    color: var(--wpm-success);
    font-weight: 700;
}

.wpm-negative {
    color: var(--wpm-danger);
    font-weight: 700;
}

/* Pagination */
.wpm-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 20px;
}

.wpm-page-link,
.wpm-page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 4px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--wpm-transition);
}

.wpm-page-link {
    background: #fff;
    color: var(--wpm-gray-600);
    border: 1px solid var(--wpm-gray-200);
}

.wpm-page-link:hover {
    background: var(--wpm-primary);
    color: #fff;
    border-color: var(--wpm-primary);
    box-shadow: 0 4px 12px rgba(238, 117, 27, 0.3);
}

.wpm-page-current {
    background: var(--wpm-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(238, 117, 27, 0.3);
}

/* ---- Task Progress Page ---- */
.wpm-task-card {
    background: #fff;
    border-radius: var(--wpm-radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--wpm-shadow);
    border: 1px solid var(--wpm-gray-100);
    transition: var(--wpm-transition);
}

.wpm-task-card:hover {
    box-shadow: var(--wpm-shadow);
    transform: none;
}

.wpm-task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.wpm-task-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--wpm-gray-900);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wpm-deadline-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--wpm-gray-500);
    background: var(--wpm-gray-100);
    padding: 3px 10px;
    border-radius: 6px;
}

.wpm-deadline-overdue {
    color: var(--wpm-danger);
    background: var(--wpm-danger-light);
}

.wpm-task-details {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--wpm-gray-500);
    margin-bottom: 14px;
}

.wpm-task-details span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wpm-task-memo {
    background: var(--wpm-gray-50);
    border: 1px solid var(--wpm-gray-100);
    border-radius: var(--wpm-radius-sm);
    padding: 14px 16px;
    font-size: 13px;
    color: var(--wpm-gray-600);
    margin-bottom: 16px;
    line-height: 1.7;
}

/* Progress Steps */
.wpm-progress-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 4px;
}

.wpm-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.wpm-progress-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--wpm-gray-200);
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--wpm-gray-400);
    position: relative;
    z-index: 2;
    transition: var(--wpm-transition);
}

.wpm-progress-step.completed .wpm-progress-step-dot {
    background: var(--wpm-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(238, 117, 27, 0.3);
}

.wpm-progress-step.active .wpm-progress-step-dot {
    background: var(--wpm-primary);
    color: #fff;
    box-shadow: 0 0 0 4px var(--wpm-primary-100), 0 2px 8px rgba(238, 117, 27, 0.3);
    animation: wpm-pulse 2s infinite;
}

@keyframes wpm-pulse {
    0%, 100% { box-shadow: 0 0 0 4px var(--wpm-primary-100), 0 2px 8px rgba(238, 117, 27, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(238, 117, 27, 0.08), 0 2px 8px rgba(238, 117, 27, 0.3); }
}

.wpm-progress-step-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--wpm-gray-400);
    letter-spacing: 0.02em;
}

.wpm-progress-step.completed .wpm-progress-step-label,
.wpm-progress-step.active .wpm-progress-step-label {
    color: var(--wpm-primary);
}

.wpm-progress-step-line {
    position: absolute;
    top: 14px;
    left: 50%;
    right: -50%;
    height: 3px;
    background: var(--wpm-gray-200);
    z-index: 1;
}

.wpm-progress-step.completed .wpm-progress-step-line {
    background: var(--wpm-primary);
}

.wpm-progress-step:last-child .wpm-progress-step-line {
    display: none;
}

/* ---- Login Required ---- */
.wpm-login-required {
    text-align: center;
    padding: 80px 20px;
    max-width: 420px;
    margin: 0 auto;
}

.wpm-login-icon {
    width: 72px;
    height: 72px;
    background: var(--wpm-primary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
}

.wpm-login-required h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--wpm-gray-900);
    margin-bottom: 8px;
}

.wpm-login-required p {
    font-size: 14px;
    color: var(--wpm-gray-500);
    margin-bottom: 28px;
}

.wpm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--wpm-transition);
    border: none;
}

.wpm-btn-primary {
    background: var(--wpm-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(238, 117, 27, 0.3);
}

.wpm-btn-primary:hover {
    background: var(--wpm-primary-dark);
    color: #fff;
    box-shadow: 0 6px 20px rgba(238, 117, 27, 0.4);
    transform: translateY(-1px);
}

/* ---- Error & Empty ---- */
.wpm-error {
    background: var(--wpm-danger-light);
    color: #991b1b;
    padding: 20px 24px;
    border-radius: var(--wpm-radius-sm);
    text-align: center;
    font-weight: 500;
    border: 1px solid #fecaca;
}

.wpm-empty {
    text-align: center;
    color: var(--wpm-gray-400);
    padding: 60px 20px;
    font-size: 14px;
}

.wpm-empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* ---- Animations ---- */
.wpm-fade-in {
    opacity: 0;
    transform: translateY(12px);
    animation: wpmFadeIn 0.5s ease forwards;
}

@keyframes wpmFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wpm-fade-in:nth-child(1) { animation-delay: 0s; }
.wpm-fade-in:nth-child(2) { animation-delay: 0.06s; }
.wpm-fade-in:nth-child(3) { animation-delay: 0.12s; }
.wpm-fade-in:nth-child(4) { animation-delay: 0.18s; }
.wpm-fade-in:nth-child(5) { animation-delay: 0.24s; }
.wpm-fade-in:nth-child(6) { animation-delay: 0.30s; }
.wpm-fade-in:nth-child(7) { animation-delay: 0.36s; }
.wpm-fade-in:nth-child(8) { animation-delay: 0.42s; }

/* ---- Count Up ---- */
.wpm-count-up {
    display: inline-block;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .wpm-app {
        padding: 0 16px 40px;
    }

    .wpm-app-header {
        padding: 20px 0 16px;
    }

    .wpm-company-name {
        font-size: 22px;
    }

    .wpm-hero-card {
        padding: 28px 24px;
    }

    .wpm-hero-value {
        font-size: 36px;
    }

    .wpm-hero-sub {
        flex-direction: column;
        gap: 12px;
    }

    .wpm-stats-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .wpm-stat-card {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 16px 20px;
    }

    .wpm-stat-icon {
        margin-bottom: 0;
    }

    .wpm-nav {
        border-radius: 10px;
    }

    .wpm-nav-item {
        padding: 8px 10px;
        font-size: 12px;
    }

    .wpm-balance-banner {
        flex-direction: column;
        padding: 20px;
    }

    .wpm-balance-banner-value {
        font-size: 28px;
    }

    /* Mobile table */
    .wpm-table thead {
        display: none;
    }

    .wpm-table tbody tr {
        display: block;
        padding: 14px 16px;
        border-bottom: 1px solid var(--wpm-gray-100);
    }

    .wpm-table tbody tr:last-child {
        border-bottom: none;
    }

    .wpm-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 4px 0;
        border: none;
        font-size: 13px;
    }

    .wpm-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--wpm-gray-500);
        font-size: 12px;
    }

    .wpm-task-header {
        flex-direction: column;
        gap: 10px;
    }

    .wpm-task-details {
        flex-direction: column;
        gap: 6px;
    }

    .wpm-progress-step-label {
        font-size: 9px;
    }

    .wpm-progress-step-dot {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .wpm-progress-step-line {
        top: 12px;
    }

    .wpm-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .wpm-stats-row {
        grid-template-columns: 1fr;
    }

    .wpm-hero-value {
        font-size: 30px;
    }

    .wpm-section-header {
        padding: 16px 18px 12px;
    }

    .wpm-task-item {
        padding: 12px 18px;
    }
}

/* ============================================
   Login Page Styles
   ============================================ */

.wpm-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--wpm-gray-50);
}

/* Background Shapes */
.wpm-login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.wpm-login-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.wpm-login-bg-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #EE751B, #F5933F);
    top: -200px;
    right: -150px;
    opacity: 0.15;
    animation: wpmFloat1 20s ease-in-out infinite;
}

.wpm-login-bg-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    bottom: -200px;
    left: -100px;
    opacity: 0.1;
    animation: wpmFloat2 25s ease-in-out infinite;
}

.wpm-login-bg-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    top: 50%;
    left: 50%;
    opacity: 0.06;
    animation: wpmFloat3 18s ease-in-out infinite;
}

@keyframes wpmFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 40px) scale(1.05); }
}

@keyframes wpmFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.08); }
}

@keyframes wpmFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.15); }
}

/* Login Container */
.wpm-login-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    margin: 20px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--wpm-shadow-xl), 0 0 0 1px rgba(0,0,0,0.03);
    position: relative;
    z-index: 1;
}

/* Left: Brand Panel */
.wpm-login-brand {
    flex: 1;
    background: linear-gradient(135deg, var(--wpm-primary) 0%, #D4630F 50%, #F5933F 100%);
    padding: 48px 40px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.wpm-login-brand::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.wpm-login-brand::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.wpm-login-brand-inner {
    position: relative;
    z-index: 1;
    color: #fff;
}

.wpm-login-logo {
    margin-bottom: 24px;
}

.wpm-login-logo-img {
    max-width: 180px;
    height: auto;
}

.wpm-login-brand-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: #fff;
}

.wpm-login-brand-subtitle {
    font-size: 15px;
    opacity: 0.8;
    margin-bottom: 40px;
    font-weight: 500;
}

/* Features */
.wpm-login-brand-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpm-login-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.wpm-login-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.wpm-login-feature-title {
    font-size: 14px;
    font-weight: 700;
}

.wpm-login-feature-desc {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 2px;
}

/* Right: Form Panel */
.wpm-login-form-wrap {
    flex: 1;
    background: #fff;
    padding: 48px 44px;
    display: flex;
    align-items: center;
}

.wpm-login-form-inner {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.wpm-login-form-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--wpm-gray-900);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.wpm-login-form-header p {
    font-size: 14px;
    color: var(--wpm-gray-500);
    margin: 0 0 32px;
}

/* Form Groups */
.wpm-form-group {
    margin-bottom: 20px;
}

.wpm-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--wpm-gray-700);
    margin-bottom: 6px;
}

.wpm-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.wpm-input-icon {
    position: absolute;
    left: 14px;
    color: var(--wpm-gray-400);
    pointer-events: none;
    z-index: 1;
}

.wpm-input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border: 1.5px solid var(--wpm-gray-200);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--wpm-gray-800);
    background: var(--wpm-gray-50);
    transition: var(--wpm-transition);
    outline: none;
}

.wpm-input-wrap input:focus {
    border-color: var(--wpm-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(238, 117, 27, 0.1);
}

.wpm-input-wrap input::placeholder {
    color: var(--wpm-gray-400);
}

/* Password Toggle */
.wpm-password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--wpm-gray-400);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: var(--wpm-transition);
}

.wpm-password-toggle:hover {
    color: var(--wpm-gray-600);
}

/* Form Error */
.wpm-form-error {
    background: var(--wpm-danger-light);
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    border: 1px solid #fecaca;
    animation: wpmShake 0.4s ease;
}

@keyframes wpmShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* Login Button */
.wpm-login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--wpm-primary), #D4630F);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--wpm-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(238, 117, 27, 0.35);
}

.wpm-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(238, 117, 27, 0.45);
}

.wpm-login-btn:active {
    transform: translateY(0);
}

.wpm-login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.wpm-login-btn-loading svg {
    animation: wpmSpin 1s linear infinite;
}

@keyframes wpmSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Footer */
.wpm-login-footer {
    text-align: center;
    margin-top: 24px;
}

.wpm-login-footer a {
    font-size: 13px;
    color: var(--wpm-gray-500);
    text-decoration: none;
    transition: var(--wpm-transition);
}

.wpm-login-footer a:hover {
    color: var(--wpm-primary);
}

/* ---- Login Responsive ---- */
@media (max-width: 768px) {
    .wpm-login-container {
        flex-direction: column;
        max-width: 480px;
        min-height: auto;
        margin: 16px;
        border-radius: 20px;
    }

    .wpm-login-brand {
        padding: 32px 28px;
    }

    .wpm-login-brand-title {
        font-size: 22px;
    }

    .wpm-login-brand-features {
        display: none;
    }

    .wpm-login-form-wrap {
        padding: 32px 28px;
    }

    .wpm-login-form-header h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .wpm-login-page {
        align-items: flex-start;
        padding-top: 20px;
    }

    .wpm-login-container {
        margin: 12px;
        border-radius: 16px;
    }

    .wpm-login-brand {
        padding: 24px 20px;
    }

    .wpm-login-form-wrap {
        padding: 24px 20px;
    }
}

/* ============================================
   Front-end Admin Panel Styles
   ============================================ */

/* Admin Buttons */
.wpm-admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid var(--wpm-gray-200);
    background: #fff;
    color: var(--wpm-gray-700);
    transition: var(--wpm-transition);
}

.wpm-admin-btn:hover {
    border-color: var(--wpm-gray-300);
    background: var(--wpm-gray-50);
    color: var(--wpm-gray-900);
}

.wpm-admin-btn-primary {
    background: var(--wpm-primary);
    color: #fff;
    border-color: var(--wpm-primary);
    box-shadow: 0 2px 8px rgba(238, 117, 27, 0.3);
}

.wpm-admin-btn-primary:hover {
    background: var(--wpm-primary-dark);
    border-color: var(--wpm-primary-dark);
    color: #fff;
}

.wpm-admin-btn-sm {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: 1.5px solid var(--wpm-gray-200);
    background: #fff;
    color: var(--wpm-gray-600);
    transition: var(--wpm-transition);
    margin-right: 4px;
}

.wpm-admin-btn-sm:hover {
    border-color: var(--wpm-primary);
    color: var(--wpm-primary);
}

.wpm-admin-btn-danger {
    color: var(--wpm-danger);
    border-color: var(--wpm-danger-light);
}

.wpm-admin-btn-danger:hover {
    background: var(--wpm-danger-light);
    border-color: var(--wpm-danger);
    color: var(--wpm-danger);
}

/* Admin Form Grid */
.wpm-admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.wpm-admin-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wpm-admin-field label {
    font-size: 12px;
    font-weight: 700;
    color: var(--wpm-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wpm-admin-field input,
.wpm-admin-field select,
.wpm-admin-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--wpm-gray-200);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--wpm-gray-800);
    background: var(--wpm-gray-50);
    transition: var(--wpm-transition);
    outline: none;
    box-sizing: border-box;
}

.wpm-admin-field input:focus,
.wpm-admin-field select:focus,
.wpm-admin-field textarea:focus {
    border-color: var(--wpm-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(238, 117, 27, 0.1);
}

.wpm-admin-field textarea {
    resize: vertical;
}

.wpm-admin-select {
    padding: 8px 14px;
    border: 1.5px solid var(--wpm-gray-200);
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    color: var(--wpm-gray-700);
    background: var(--wpm-gray-50);
    outline: none;
    transition: var(--wpm-transition);
    min-width: 240px;
}

.wpm-admin-select:focus {
    border-color: var(--wpm-primary);
    box-shadow: 0 0 0 3px rgba(238, 117, 27, 0.1);
}

/* Status Change Select in Table */
.wpm-status-change {
    padding: 5px 10px;
    border: 1.5px solid var(--wpm-gray-200);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: var(--wpm-transition);
    background: var(--wpm-gray-50);
}

.wpm-status-change:focus {
    border-color: var(--wpm-primary);
    box-shadow: 0 0 0 3px rgba(238, 117, 27, 0.1);
}

/* Admin toast */
.wpm-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--wpm-gray-900);
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--wpm-shadow-xl);
    z-index: 9999;
    animation: wpmToastIn 0.3s ease, wpmToastOut 0.3s ease 2.5s forwards;
}

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

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

/* Admin responsive */
@media (max-width: 768px) {
    .wpm-admin-form-grid {
        grid-template-columns: 1fr;
    }

    .wpm-stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .wpm-admin-btn-sm {
        padding: 4px 8px;
        font-size: 10px;
    }
}
