/* CSS Variables - Design System */
:root {
    /* Colors (HSL format) */
    --foreground: 240 10% 12%;
    --muted-foreground: 240 5% 64%;
    --primary: 24 95% 53%;
    --primary-glow: 24 95% 63%;
    --secondary: 214 84% 56%;
    --secondary-glow: 214 84% 66%;
    --accent: 142 76% 56%;
    --accent-glow: 142 76% 66%;
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary-glow)) 100%);
    --gradient-secondary: linear-gradient(135deg, hsl(var(--secondary)) 0%, hsl(var(--secondary-glow)) 100%);
    --gradient-accent: linear-gradient(135deg, hsl(var(--accent)) 0%, hsl(var(--accent-glow)) 100%);
    --gradient-premium: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 50%, hsl(var(--accent)) 100%);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.hanging-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 40px 0;
}

/* Ropes */
.rope {
    position: absolute;
    top: -40px;
    width: 8px;
    height: 50px;
    background: linear-gradient(to bottom, #8a6d3b, #c19a6b, #8a6d3b);
    border-radius: 4px;
    z-index: 1; /* keep them low so overlays appear above */
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    pointer-events: none; /* allows clicks through */
}

    .rope.left {
        left: 40px;
        margin-top: -25px;
    }

    .rope.right {
        right: 40px;
        margin-top: -25px;
    }

/* make sure parent doesn't clip */
.parent-container {
    position: relative;
    overflow: visible; /* prevents clipping of ropes */
}

.rope::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -3px;
    width: 14px;
    height: 20px;
    background: #c19a6b;
    border-radius: 50% 50% 0 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}



/* Dashboard Container */
.dashboard-container {
    width: 100%;
    dash max-width: 450px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    padding: 30px 25px;
    margin-top: -18px;
    position: relative;
    overflow: hidden;
    animation: containerSlide 0.8s ease-out;
}

    .dashboard-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
        border-radius: 24px 24px 0 0;
    }

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    position: relative;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titlePulse 2s infinite;
}

    .dashboard-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 40px;
        height: 4px;
        background: #6366f1;
        border-radius: 2px;
    }

.sparkles-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: hsl(var(--primary));
    animation: float 3s ease-in-out infinite;
}

    .sparkles-icon i {
        width: 100%;
        height: 100%;
    }

/* Button Grid */
.button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Dashboard Buttons */
.dashboard-btn {
    position: relative;
    height: 140px;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    padding: 20px 15px;
    text-align: center;
}

    .dashboard-btn:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
    }

    .dashboard-btn:active {
        transform: translateY(0) scale(0.98);
    }

.btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: all 0.5s ease;
}

.dashboard-btn:hover .btn-bg {
    filter: brightness(1.2);
}

.b2b .btn-bg {
    background: var(--gradient-primary);
}

.b2c .btn-bg {
    background: var(--gradient-secondary);
}

.b2s .btn-bg {
    background: var(--gradient-accent);
}

.manpower .btn-bg {
    background: var(--gradient-premium);
}

.btn-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23222' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

/* Shine effect */
.shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient( to bottom right, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.3) 70%, rgba(255, 255, 255, 0.2) );
    transform: rotate(30deg);
    z-index: 2;
    animation: shineEffect 3s infinite;
    pointer-events: none;
}

.btn-icon {
    font-size: 32px;
    margin-bottom: 12px;
    z-index: 2;
    color: white;
    background: rgba(255, 255, 255, 0.25);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease;
}

.dashboard-btn:hover .btn-icon {
    transform: scale(1.2) rotate(10deg);
    color: #fffd88;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}

.btn-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.dashboard-btn:hover .btn-title {
    transform: scale(1.1);
    letter-spacing: 1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Animated Info Cards */
.btn-info {
    position: absolute;
    bottom: 12px;
    left: 15px;
    right: 15px;
    height: 20px;
    overflow: hidden;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-text {
    font-size: 0.8rem;
    color: white;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.dashboard-btn:hover .info-text {
    opacity: 1;
}

.typewriter {
    overflow: hidden;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

.marquee {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 10s linear infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent
    }

    50% {
        border-color: rgba(255, 255, 255, 0.7)
    }
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shineEffect {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(30deg);
    }

    80% {
        transform: translateX(100%) translateY(100%) rotate(30deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(30deg);
    }
}

@keyframes containerSlide {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes titlePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Recent Activity Section */
.recent-section {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}

    .section-title i {
        margin-right: 10px;
        color: #6366f1;
    }

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

    .activity-item:hover {
        background: #f1f5f9;
        transform: translateX(5px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #6366f1;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
    animation: iconPulse 2s infinite;
}

.activity-content {
    flex-grow: 1;
}

.activity-text {
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 4px;
    font-weight: 500;
}

.activity-time {
    font-size: 0.75rem;
    color: #64748b;
}

/* Responsive Design */
@media (max-width: 480px) {
    .button-grid {
        gap: 15px;
    }

    .dashboard-btn {
        height: 120px;
    }

    .btn-icon {
        font-size: 24px;
        width: 45px;
        height: 45px;
    }

    .btn-title {
        font-size: 16px;
    }
}
