/* Homepage + animated sidebar polish */
:root {
    --ease: cubic-bezier(.2, .8, .2, 1);
}

body {
    scroll-behavior: smooth;
}

.app-shell {
    display: block !important;
    min-height: 100vh;
}

.sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: 88px !important;
    height: 100vh !important;
    z-index: 50 !important;
    overflow-x: hidden !important;
    transition: width .22s var(--ease), box-shadow .22s var(--ease) !important;
    box-shadow: 8px 0 28px rgba(0,0,0,.18);
}

.sidebar:hover {
    width: 270px !important;
    box-shadow: 16px 0 45px rgba(0,0,0,.28);
}

.content-shell {
    margin-left: 88px !important;
    min-width: 0;
    transition: margin-left .22s var(--ease);
}

.brand {
    min-height: 112px;
    overflow: hidden;
}

.brand-logo {
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0 !important;
    transition: width .22s var(--ease), padding .22s var(--ease), border-radius .22s var(--ease);
}

.brand-logo-mark {
    display: block;
}

.brand-logo-full {
    display: none;
}

.sidebar:hover .brand-logo {
    width: 205px;
    padding: 0 10px !important;
    justify-content: flex-start;
}

.sidebar:hover .brand-logo-mark {
    display: none;
}

.sidebar:hover .brand-logo-full {
    display: block;
}

.brand small,
.menu-section,
.menu a {
    white-space: nowrap;
}

.brand small,
.menu-section {
    opacity: 0;
    transition: opacity .16s var(--ease);
}

.sidebar:hover .brand small,
.sidebar:hover .menu-section {
    opacity: 1;
}

.menu a {
    position: relative;
    min-height: 44px;
    overflow: hidden;
    color: transparent !important;
    transition: background .16s var(--ease), color .16s var(--ease), transform .16s var(--ease), border-left-color .16s var(--ease);
}

.menu a::before {
    content: "•";
    position: absolute;
    left: 19px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
}

.sidebar:hover .menu a {
    color: #f2f2f2 !important;
    padding-left: 44px !important;
}

.sidebar:hover .menu a::before {
    color: var(--red);
    font-size: 22px;
}

.menu a:hover {
    transform: translateX(3px);
}

.home-panel-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    animation: pageFade .28s var(--ease) both;
}

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

.home-user-panel {
    min-height: 520px;
    padding: 32px;
    border-radius: 32px;
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(215, 25, 32, .42), transparent 34%), linear-gradient(160deg, #0f0f0f, #232323);
    border-left: 12px solid var(--red);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .20);
    animation: cardIn .32s var(--ease) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(12px) scale(.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.panel-label {
    margin: 0 0 18px;
    color: #ffb4b4;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.home-user-panel h1 {
    margin: 0 0 26px;
    color: #ffffff;
    font-size: 36px;
    line-height: 1.08;
}

.panel-info-list {
    display: grid;
    gap: 12px;
}

.panel-info-list div {
    padding: 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
}

.panel-info-list span {
    display: block;
    margin-bottom: 6px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.panel-info-list strong {
    display: block;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.25;
}

.home-work-area {
    min-width: 0;
}

.home-priority-cards {
    display: grid;
    grid-template-columns: .85fr 1.25fr;
    gap: 22px;
    margin-bottom: 22px;
}

.home-days-priority,
.home-request-priority {
    min-height: 245px;
    border-radius: 32px;
    padding: 34px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, .14);
    animation: cardIn .34s var(--ease) both;
}

.home-days-priority {
    display: grid;
    place-items: center;
    text-align: center;
    background: #ffffff;
    border: 3px solid #111111;
}

.home-days-priority span,
.home-request-priority span,
.home-quick-stats span,
.home-manager-tools span {
    display: block;
    color: #4b5563;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.home-days-priority strong {
    color: var(--red);
    font-size: 112px;
    line-height: .9;
    text-shadow: 0 10px 28px rgba(215,25,32,.18);
}

.home-request-priority {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    transition: transform .16s var(--ease), box-shadow .16s var(--ease), filter .16s var(--ease);
}

.home-request-priority:hover {
    transform: translateY(-4px);
    filter: brightness(1.03);
    box-shadow: 0 30px 70px rgba(215, 25, 32, .34);
}

.home-request-priority span {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, .82);
}

.home-request-priority strong {
    color: #ffffff;
    font-size: 58px;
    line-height: 1;
}

.home-quick-stats,
.home-manager-tools {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.home-manager-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-quick-stats div,
.home-quick-stats a,
.home-manager-tools a {
    min-height: 128px;
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #d7dce4;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .10);
    text-decoration: none;
    transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease);
}

.home-quick-stats a:hover,
.home-manager-tools a:hover,
.home-quick-stats div:hover {
    border-color: var(--red);
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, .14);
}

.home-quick-stats strong,
.home-manager-tools strong {
    display: block;
    margin-top: 12px;
    color: #0f172a;
    font-size: 28px;
    line-height: 1.08;
    font-weight: 900;
}

@media (max-width: 1050px) {
    .app-shell { display: grid !important; grid-template-columns: 1fr !important; }
    .sidebar { position: static !important; width: 100% !important; height: auto !important; }
    .content-shell { margin-left: 0 !important; }
    .brand-logo { width: auto; min-width: 0; padding: 0 14px !important; justify-content: flex-start; }
    .brand-logo-mark { display: none; }
    .brand-logo-full { display: block; }
    .menu a { color: #f2f2f2 !important; }
    .menu a::before { display: none; }
    .brand small, .menu-section { opacity: 1; }

    .home-panel-layout,
    .home-priority-cards,
    .home-quick-stats,
    .home-manager-tools {
        grid-template-columns: 1fr;
    }

    .home-user-panel {
        min-height: auto;
    }

    .home-user-panel h1 {
        font-size: 32px;
    }

    .home-days-priority strong {
        font-size: 78px;
    }

    .home-request-priority strong {
        font-size: 42px;
    }
}
