/**
 * Project OS WCOM - Client Dashboard Stylesheet (V2)
 */

.wcom-os-wrapper {
    width: 100%;
    color: #f3f4f6;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Glassmorphism styling */
.wcom-os-wrapper .glass-card {
    background: rgba(11, 20, 38, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.4);
}

/* Custom visual timeline elements */
.wcom-timeline-node {
    position: relative;
    padding-left: 28px;
}

.wcom-timeline-bullet {
    position: absolute;
    left: -34px;
    top: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #111827;
    border: 2px solid #374151;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wcom-timeline-node.completed .wcom-timeline-bullet {
    background: #0066ff;
    border-color: #0066ff;
    box-shadow: 0 0 12px rgba(0, 102, 255, 0.5);
}

.wcom-timeline-node.current .wcom-timeline-bullet {
    background: #06b6d4;
    border-color: #06b6d4;
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.8);
    animation: wcomPulse 2s infinite;
}

@keyframes wcomPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
    }
    70% {
        transform: scale(1.25);
        box-shadow: 0 0 0 10px rgba(6, 182, 212, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }
}

/* Messaging Chat Area V2 */
#wcom-chat-messages {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

#wcom-chat-messages::-webkit-scrollbar {
    width: 4px;
}

#wcom-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.wcom-msg-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 2px;
    word-wrap: break-word;
}

.wcom-msg-bubble.admin {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.wcom-msg-bubble.client {
    background: #0066ff;
    color: #ffffff;
    align-self: flex-end;
    border-top-right-radius: 0;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
}

/* Notification Bell dropdown styling */
#wcom-bell-dropdown {
    top: 100%;
    right: 0;
    min-width: 320px;
    z-index: 9999 !important;
    animation: slideDown 0.25s ease-out;
}

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

.wcom-notif-item {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
    border-radius: 6px;
}

.wcom-notif-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.wcom-notif-item.unread {
    border-left: 2.5px solid #0066ff;
    background: rgba(0, 102, 255, 0.03);
}

.wcom-notif-time {
    display: block;
    font-size: 9px;
    color: #6b7280;
    margin-top: 4px;
}

/* Badges */
.wcom-badge-uploaded {
    background: rgba(6, 182, 212, 0.07);
    border: 1px solid rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    font-size: 11px;
    padding: 8px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Gallery and File Cards Grid */
#wcom-uploaded-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
    gap: 12px !important;
    margin-top: 15px !important;
}

.wcom-file-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    cursor: pointer;
    box-sizing: border-box;
}

.wcom-file-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 102, 255, 0.4);
    transform: translateY(-2px);
}

.wcom-file-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wcom-file-icon {
    font-size: 32px;
    margin-bottom: 8px;
    color: #9ca3af;
    display: block;
}

.wcom-file-name {
    font-size: 9px;
    color: #9ca3af;
    text-align: center;
    padding: 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    box-sizing: border-box;
}

.wcom-file-actions {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    gap: 4px;
    z-index: 10;
}

.wcom-file-delete {
    background: rgba(239, 68, 68, 0.9) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.wcom-file-delete:hover {
    background: rgba(220, 38, 38, 1) !important;
}

/* Lightbox Modal (Popup) */
.wcom-lightbox {
    position: fixed;
    z-index: 99999 !important;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(3, 7, 18, 0.95);
    display: none; /* Controlled by JS flex/none */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.wcom-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.wcom-lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.wcom-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #9ca3af;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
    z-index: 100001;
}

.wcom-lightbox-close:hover {
    color: #fff;
}

.wcom-lightbox-prev, .wcom-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 16px;
    user-select: none;
    transition: color 0.2s;
    z-index: 100000;
}

.wcom-lightbox-prev {
    left: 20px;
}

.wcom-lightbox-next {
    right: 20px;
}

.wcom-lightbox-prev:hover, .wcom-lightbox-next:hover {
    color: #fff;
}

#wcom-lightbox-caption {
    color: #fff;
    font-size: 14px;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

#paypal-button-container {
    background: #ffffff !important;
    padding: 15px !important;
    border-radius: 12px !important;
    margin-top: 15px !important;
}

