/* WCS Portfolio Panel - front-end admin panel for the restricted uploader account */

body.wcs-panel-body {
    background: #f4f4f8;
    margin: 0;
}

.wcs-app,
.wcs-login-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #2b2b33;
}

.wcs-app *,
.wcs-login-wrap * {
    box-sizing: border-box;
}

/* ---------- Login screen ---------- */

.wcs-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(circle at top left, #3a2748 0%, #1a1420 45%, #100c14 100%);
}

.wcs-login-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 14px;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.wcs-login-brand {
    font-size: 20px;
    font-weight: 700;
    color: #232323;
    margin-bottom: 6px;
}

.wcs-login-brand span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #fd226a;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 2px;
}

.wcs-login-sub {
    color: #8a8a95;
    font-size: 14px;
    margin: 0 0 26px;
}

.wcs-login-card form p {
    text-align: left;
    margin-bottom: 16px;
}

.wcs-login-card label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}

.wcs-login-card input[type="text"],
.wcs-login-card input[type="password"] {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #dcdce4;
    border-radius: 6px;
    font-size: 14px;
}

.wcs-login-card input[type="text"]:focus,
.wcs-login-card input[type="password"]:focus {
    outline: none;
    border-color: #fd226a;
}

.wcs-login-card p.login-submit {
    margin-top: 22px;
}

.wcs-login-card input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #fd226a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.wcs-login-card input[type="submit"]:hover {
    background: #e01259;
}

.wcs-login-card p.login-remember {
    font-size: 13px;
    font-weight: 400;
}

.wcs-login-card p.login-remember label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
}

/* ---------- App shell: sidebar + topbar ---------- */

.wcs-app {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.wcs-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #14121b;
    color: #cfcfe0;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wcs-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 6px 10px 20px;
}

.wcs-sidebar-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #fd226a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.wcs-sidebar-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6f6f85;
    padding: 10px 10px 6px;
}

.wcs-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wcs-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #cfcfe0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}

.wcs-nav-item svg {
    flex-shrink: 0;
    opacity: .85;
}

.wcs-nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.wcs-nav-item.is-active {
    background: #fd226a;
    color: #fff;
}

.wcs-nav-item.is-active svg {
    opacity: 1;
}

.wcs-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.wcs-topbar {
    background: #fff;
    border-bottom: 1px solid #ebebf1;
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.wcs-topbar-title {
    font-size: 18px;
    font-weight: 700;
    color: #232323;
}

.wcs-topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wcs-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #7c529c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.wcs-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    font-size: 13px;
}

.wcs-user-info span {
    color: #8a8a95;
    font-size: 12px;
}

.wcs-logout-link {
    color: #fd226a;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    margin-left: 6px;
    padding-left: 12px;
    border-left: 1px solid #ebebf1;
}

.wcs-logout-link:hover {
    text-decoration: underline;
}

.wcs-content {
    flex: 1;
    padding: 30px;
    width: 100%;
}

/* ---------- Dashboard ---------- */

.wcs-welcome-banner {
    background: linear-gradient(135deg, #2a1f33 0%, #5c3a72 55%, #fd226a 130%);
    color: #fff;
    border-radius: 12px;
    padding: 30px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.wcs-welcome-banner h2 {
    margin: 0 0 6px;
    font-size: 24px;
    color: #ffffff;
}

.wcs-welcome-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.wcs-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.wcs-stat-card {
    background: #fff;
    border: 1px solid #ebebf1;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(20, 20, 40, 0.04);
    padding: 22px 24px;
}

.wcs-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #8a8a95;
    margin-bottom: 8px;
}

.wcs-stat-value {
    font-size: 30px;
    font-weight: 700;
    color: #232323;
}

.wcs-stat-value-small {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

/* ---------- Shared components (list, form, notices) ---------- */

.wcs-panel-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.wcs-panel-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wcs-tab {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 30px;
    background: #eeeef4;
    color: #4a4a55;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s ease, color .15s ease;
}

.wcs-tab:hover {
    background: #e2e2ec;
    color: #232323;
}

.wcs-tab.is-active {
    background: #fd226a;
    color: #fff;
}

.wcs-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 6px;
    background: #fd226a;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .15s ease;
    margin-bottom: 0;
}

.wcs-btn:hover {
    background: #e01259;
}

.wcs-btn-secondary {
    background: #f2f2f6;
    color: #4a4a55 !important;
}

.wcs-btn-secondary:hover {
    background: #e8e8f0;
}

.wcs-btn-small {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 5px;
}

.wcs-btn-danger {
    background: #fff;
    color: #d63638 !important;
    border: 1px solid #f0b3b4;
    margin-bottom: 0;
}

.wcs-btn-danger:hover {
    background: #fdeaea;
}

.wcs-card {
    background: #fff;
    border: 1px solid #ebebf1;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(20, 20, 40, 0.04);
    padding: 30px;
    margin-bottom: 24px;
}

.wcs-notice {
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
}

.wcs-notice-success {
    background: #eafaf0;
    border: 1px solid #b7e4c7;
    color: #1e6b3c;
}

.wcs-notice-error {
    background: #fdeaea;
    border: 1px solid #f3b8b8;
    color: #a11616;
}

.wcs-field {
    margin-bottom: 20px;
}

.wcs-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #232323;
}

.wcs-field .wcs-hint {
    display: block;
    font-weight: 400;
    font-size: 12px;
    color: #8a8a95;
    margin-top: 4px;
}

.wcs-field input[type="text"],
.wcs-field input[type="date"],
.wcs-field input[type="file"],
.wcs-field select,
.wcs-field textarea {
    width: 100%;
    max-width: 520px;
    padding: 10px 12px;
    border: 1px solid #dcdce4;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.wcs-field input[type="text"]:focus,
.wcs-field input[type="date"]:focus,
.wcs-field select:focus,
.wcs-field textarea:focus {
    outline: none;
    border-color: #fd226a;
}

.wcs-radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wcs-radio-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid #dcdce4;
    border-radius: 30px;
    background: #fff;
    color: #4a4a55;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.wcs-radio-pill input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    margin: 0;
}

.wcs-radio-pill:hover {
    border-color: #fd226a;
    color: #232323;
}

.wcs-radio-pill:focus-within {
    box-shadow: 0 0 0 3px rgba(253, 34, 106, 0.15);
}

.wcs-radio-pill.is-selected {
    background: #fd226a;
    border-color: #fd226a;
    color: #fff;
}

.wcs-form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-top: 8px;
}

.wcs-current-image {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.wcs-current-image img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ebebf1;
}

.wcs-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.wcs-gallery-thumb {
    position: relative;
    width: 90px;
}

.wcs-gallery-thumb img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ebebf1;
    display: block;
}

.wcs-gallery-thumb label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #a11616;
    margin-top: 4px;
    font-weight: 500;
}

.wcs-table-wrap {
    overflow-x: auto;
}

.wcs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.wcs-table th {
    text-align: left;
    padding: 12px 14px;
    background: #f7f7fa;
    color: #6b6b76;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom: 1px solid #ebebf1;
}

.wcs-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f2f2f6;
    vertical-align: middle;
}

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

.wcs-thumb {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    background: #f2f2f6;
}

.wcs-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.wcs-badge-events {
    background: #2e7dd7;
}

.wcs-badge-exhibition-stand {
    background: #7c529c;
}

.wcs-row-actions {
    display: flex;
    gap: 8px;
}

.wcs-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #8a8a95;
}

/* ---------- Pagination ---------- */

.wcs-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f2f2f6;
}

.wcs-page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 6px;
    background: #f2f2f6;
    color: #4a4a55;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.wcs-page-number:hover {
    background: #e8e8f0;
    color: #232323;
}

.wcs-page-number.is-active {
    background: #fd226a;
    color: #fff;
}

/* ---------- Searchable page picker (Project Types) ---------- */

.wcs-page-search-results {
    display: none;
    position: relative;
    max-width: 520px;
    margin-top: 4px;
    border: 1px solid #ebebf1;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(20, 20, 40, 0.08);
    max-height: 220px;
    overflow-y: auto;
    z-index: 20;
}

.wcs-page-search-item {
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
}

.wcs-page-search-item:hover {
    background: #f7f7fa;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .wcs-app {
        flex-direction: column;
    }

    .wcs-sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        padding: 12px 16px;
        gap: 16px;
        overflow-x: auto;
    }

    .wcs-sidebar-brand {
        padding: 0;
        white-space: nowrap;
    }

    .wcs-sidebar-label {
        display: none;
    }

    .wcs-sidebar-nav {
        flex-direction: row;
    }

    .wcs-topbar {
        padding: 14px 18px;
    }

    .wcs-user-info {
        display: none;
    }

    .wcs-content {
        padding: 18px;
    }
}
