/* My Workspace — modern customer portal */

.swh-ws-auth {
    position: relative;
    min-height: calc(100vh - 140px);
    padding: 48px 0 72px;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 8% -10%, rgba(0, 102, 204, 0.16), transparent 55%),
        radial-gradient(800px 380px at 100% 10%, rgba(0, 168, 107, 0.12), transparent 50%),
        linear-gradient(165deg, #f3f7fb 0%, #eef5f1 45%, #f8fafc 100%);
}

.swh-ws-auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
    opacity: 0.85;
}

.swh-ws-auth-orb-a {
    width: 280px;
    height: 280px;
    top: -80px;
    left: -60px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.28), transparent 68%);
    animation: swhWsFloat 14s ease-in-out infinite;
}

.swh-ws-auth-orb-b {
    width: 340px;
    height: 340px;
    right: -100px;
    bottom: 5%;
    background: radial-gradient(circle, rgba(0, 168, 107, 0.22), transparent 70%);
    animation: swhWsFloat 18s ease-in-out infinite reverse;
}

@keyframes swhWsFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(18px, -14px, 0) scale(1.06); }
}

.swh-ws-auth-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: stretch;
    max-width: 980px;
    margin: 0 auto;
}

.swh-ws-auth-aside {
    border-radius: 28px;
    padding: 40px 36px;
    color: #f8fbff;
    background:
        linear-gradient(145deg, rgba(7, 28, 56, 0.96), rgba(0, 80, 140, 0.9) 55%, rgba(0, 120, 90, 0.88)),
        radial-gradient(500px 280px at 100% 0%, rgba(61, 155, 255, 0.35), transparent 60%);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 520px;
    animation: swhWsIn 0.55s ease both;
}

.swh-ws-auth-mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    background: linear-gradient(145deg, #3d9bff, #2ee6a0);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    margin-bottom: 22px;
}

.swh-ws-auth-aside h1 {
    font-size: clamp(1.65rem, 2.4vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 12px;
}

.swh-ws-auth-aside p {
    color: rgba(232, 240, 250, 0.82);
    font-size: 0.98rem;
    margin-bottom: 0;
    max-width: 28ch;
}

.swh-ws-auth-points {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
}

.swh-ws-auth-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: rgba(240, 247, 255, 0.92);
    font-size: 0.9rem;
}

.swh-ws-auth-points i {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
}

.swh-ws-auth-panel {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
    padding: 36px 32px;
    animation: swhWsIn 0.55s ease 0.08s both;
}

.swh-ws-auth-panel h2 {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0b1a30;
    margin-bottom: 6px;
}

.swh-ws-auth-panel .swh-ws-lead {
    color: #64748b;
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
}

.swh-ws-auth-panel .form-label {
    font-weight: 600;
    color: #334155;
    font-size: 0.86rem;
}

.swh-ws-auth-panel .form-control {
    border-radius: 12px;
    border-color: #dbe3ee;
    padding: 0.78rem 1rem;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.swh-ws-auth-panel .form-control:focus {
    background: #fff;
    border-color: #3d9bff;
    box-shadow: 0 0 0 4px rgba(61, 155, 255, 0.15);
}

.swh-ws-btn {
    border: 0;
    border-radius: 12px;
    padding: 0.85rem 1.2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #0066cc 0%, #00a86b 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 102, 204, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.swh-ws-btn:hover {
    color: #fff;
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(0, 102, 204, 0.3);
}

.swh-ws-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.15rem;
    font-size: 0.86rem;
}

.swh-ws-links a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.swh-ws-links a:hover {
    text-decoration: underline;
}

.swh-ws-alert {
    border: 0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
}

@keyframes swhWsIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dashboard */
.swh-ws-dash {
    position: relative;
    padding: 40px 0 80px;
    overflow: hidden;
    background:
        radial-gradient(700px 300px at 0% 0%, rgba(0, 102, 204, 0.1), transparent 55%),
        radial-gradient(600px 280px at 100% 0%, rgba(0, 168, 107, 0.08), transparent 50%),
        #f5f8fb;
}

.swh-ws-dash-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 1.75rem;
    padding: 28px 28px;
    border-radius: 24px;
    color: #fff;
    background:
        linear-gradient(125deg, #0b1a30 0%, #0d4f8c 52%, #0a8f68 100%);
    box-shadow: 0 22px 48px rgba(11, 26, 48, 0.22);
    animation: swhWsIn 0.5s ease both;
}

.swh-ws-dash-hero h1 {
    font-size: clamp(1.45rem, 2vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 6px;
}

.swh-ws-dash-hero p {
    margin: 0;
    color: rgba(232, 240, 250, 0.82);
    font-size: 0.92rem;
}

.swh-ws-dash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.swh-ws-dash-actions .btn {
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-weight: 600;
    font-size: 0.86rem;
}

.swh-ws-dash-actions .btn-light {
    background: rgba(255, 255, 255, 0.95);
    border: 0;
    color: #0b1a30;
}

.swh-ws-dash-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.swh-ws-stat {
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    animation: swhWsIn 0.5s ease both;
}

.swh-ws-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
}

.swh-ws-stat .card-body {
    padding: 1.15rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 14px;
}

.swh-ws-stat-ico {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    color: #fff;
    flex: 0 0 46px;
}

.swh-ws-stat-ico.is-blue { background: linear-gradient(145deg, #3d9bff, #0066cc); }
.swh-ws-stat-ico.is-green { background: linear-gradient(145deg, #2ee6a0, #00a86b); }
.swh-ws-stat-ico.is-teal { background: linear-gradient(145deg, #38bdf8, #0ea5e9); }

.swh-ws-stat .swh-ws-stat-label {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.swh-ws-stat strong {
    font-size: 1.55rem;
    color: #0b1a30;
    letter-spacing: -0.03em;
    line-height: 1;
}

.swh-ws-panel {
    border: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
    margin-bottom: 1.35rem;
    overflow: hidden;
    animation: swhWsIn 0.55s ease both;
}

.swh-ws-panel .card-header {
    background: #fff;
    border-bottom: 1px solid #eef2f7;
    font-weight: 600;
    color: #0b1a30;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.swh-ws-panel .card-header i {
    color: #0066cc;
}

.swh-ws-panel .table {
    margin: 0;
}

.swh-ws-panel .table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 600;
    border-bottom-color: #eef2f7;
    background: #f8fafc;
    white-space: nowrap;
}

.swh-ws-panel .table td {
    vertical-align: middle;
    border-color: #f1f5f9;
    font-size: 0.9rem;
}

.swh-ws-panel .btn-sm {
    border-radius: 999px;
    padding: 0.28rem 0.85rem;
    font-weight: 600;
}

.swh-ws-empty {
    padding: 2rem 1.25rem;
    color: #64748b;
    text-align: center;
}

.swh-ws-edit-wrap {
    max-width: 920px;
    margin: 0 auto;
}

.swh-ws-edit-wrap .card-body {
    padding: 1.5rem 1.5rem 1.75rem;
}

.swh-ws-edit-wrap .form-control,
.swh-ws-edit-wrap .form-select {
    border-radius: 10px;
    border-color: #dbe3ee;
}

.swh-ws-start {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem 1.4rem 1.35rem;
    margin-bottom: 1.35rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
    animation: swhWsIn 0.5s ease both;
}

.swh-ws-start h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: #0b1a30;
    letter-spacing: -0.02em;
}

.swh-ws-start > p {
    margin: 0 0 1.1rem;
    color: #64748b;
    font-size: 0.95rem;
}

.swh-ws-start-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.swh-ws-start-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.05rem 1rem;
    border-radius: 16px;
    text-decoration: none !important;
    color: #0b1a30 !important;
    background: linear-gradient(165deg, #f7fbff, #f3faf6);
    border: 1px solid #e4eef7;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.swh-ws-start-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 102, 204, 0.28);
    box-shadow: 0 12px 24px rgba(0, 102, 204, 0.1);
}

.swh-ws-start-card i {
    font-size: 1.25rem;
    color: #0066cc;
    margin-bottom: 0.35rem;
}

.swh-ws-start-card strong {
    font-size: 0.95rem;
}

.swh-ws-start-card span {
    font-size: 0.82rem;
    color: #64748b;
}

.swh-ws-upcoming .card-header i {
    color: #c2410c;
}

@media (max-width: 900px) {
    .swh-ws-auth-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .swh-ws-auth-aside {
        min-height: auto;
        padding: 28px 24px;
    }

    .swh-ws-auth-aside p {
        max-width: none;
    }

    .swh-ws-auth-points {
        display: none;
    }

    .swh-ws-auth-panel {
        padding: 28px 22px;
    }

    .swh-ws-start-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .swh-ws-auth-orb,
    .swh-ws-auth-aside,
    .swh-ws-auth-panel,
    .swh-ws-stat,
    .swh-ws-panel,
    .swh-ws-dash-hero {
        animation: none !important;
    }
}
