/* ====================================
   DELIVERABLES PAGE STYLES
   ==================================== */

/* Deliverables Stats Bar */
.deliverables-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: var(--white);
    border: 2px solid var(--grey-lighter);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    animation: slideInUp 0.4s ease-out;
}

.stat-box:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-box .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-orange);
}

.stat-icon.approved {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
}

.stat-icon.total {
    background: rgba(13, 133, 216, 0.1);
    color: var(--primary-blue);
}

.stat-icon.size {
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple);
}

.stat-box .stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-box .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--grey-dark);
    line-height: 1;
}

.stat-box .stat-label {
    font-size: 0.85rem;
    color: var(--grey-medium);
    font-weight: 500;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--grey-lighter);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-tabs::-webkit-scrollbar {
    height: 4px;
}

.filter-tabs::-webkit-scrollbar-thumb {
    background: var(--grey-lighter);
    border-radius: 2px;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--grey-lighter);
    border-radius: var(--radius-md);
    color: var(--grey-medium);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-tab:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: var(--primary-blue-light);
}

.filter-tab.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.filter-tab .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.filter-tab.active .count {
    background: rgba(255, 255, 255, 0.3);
}

/* Deliverables Grid */
.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Deliverable Card */
.deliverable-card {
    background: var(--white);
    border: 2px solid var(--grey-lighter);
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    animation: slideInUp 0.4s ease-out;
}

.deliverable-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 24px rgba(13, 133, 216, 0.15);
    transform: translateY(-4px);
}

/* Deliverable Card Header */
.deliverable-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--grey-lighter);
}

.file-type-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-type-icon.code-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.file-type-icon.design-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--white);
}

.file-type-icon.document-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: var(--white);
}

.file-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.file-status.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-orange);
}

.file-status.status-approved {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
}

/* Deliverable Content */
.deliverable-content {
    flex: 1;
    margin-bottom: 1.5rem;
}

.deliverable-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--grey-dark);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.deliverable-description {
    font-size: 0.95rem;
    color: var(--grey-medium);
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

/* Deliverable Meta */
.deliverable-meta {
    background: var(--grey-lightest);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.meta-label {
    color: var(--grey-medium);
    font-weight: 500;
}

.meta-value {
    color: var(--grey-dark);
    font-weight: 600;
}

/* Deliverable Actions */
.deliverable-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--grey-lighter);
}

.btn-icon-action {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--grey-lighter);
    background: var(--white);
    color: var(--grey-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-icon-action:hover {
    background: var(--primary-blue-light);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-full {
    flex: 1;
}

/* Upload Zone */
.upload-zone {
    background: linear-gradient(135deg, rgba(13, 133, 216, 0.03) 0%, rgba(13, 133, 216, 0.08) 100%);
    border: 2px dashed var(--grey-lighter);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(13, 133, 216, 0.05) 0%, rgba(13, 133, 216, 0.12) 100%);
}

.upload-icon {
    color: var(--primary-blue);
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.upload-zone h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--grey-dark);
    margin: 0 0 0.75rem;
}

.upload-zone p {
    font-size: 1rem;
    color: var(--grey-medium);
    margin: 0 0 1.5rem;
}

.upload-note {
    font-size: 0.9rem !important;
    color: var(--grey-light) !important;
    margin: 1rem 0 0 !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .deliverables-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .deliverables-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

@media (max-width: 968px) {
    .deliverables-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .deliverables-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .deliverables-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-box {
        padding: 1.25rem;
    }
    
    .stat-box .stat-icon {
        width: 48px;
        height: 48px;
    }
    
    .stat-box .stat-number {
        font-size: 1.5rem;
    }
    
    .filter-tabs {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .filter-tab {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .deliverables-grid {
        gap: 1.5rem;
    }
    
    .deliverable-card {
        padding: 1.5rem;
    }
    
    .deliverable-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .file-type-icon {
        width: 56px;
        height: 56px;
    }
    
    .deliverable-name {
        font-size: 1.1rem;
    }
    
    .deliverable-actions {
        flex-wrap: wrap;
    }
    
    .btn-icon-action {
        flex: 1;
        min-width: 40px;
    }
    
    .btn-full {
        width: 100%;
        flex: auto;
    }
    
    .upload-zone {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .filter-tabs {
        gap: 0.5rem;
    }
    
    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .deliverable-card {
        padding: 1.25rem;
    }
    
    .file-type-icon {
        width: 48px;
        height: 48px;
    }
    
    .file-type-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .deliverable-name {
        font-size: 1rem;
    }
    
    .deliverable-description {
        font-size: 0.9rem;
    }
    
    .deliverable-meta {
        padding: 1rem;
    }
    
    .meta-row {
        font-size: 0.85rem;
    }
    
    .deliverable-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-icon-action {
        width: 100%;
        min-width: auto;
    }
    
    .upload-zone h3 {
        font-size: 1.25rem;
    }
    
    .upload-zone p {
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.deliverable-card:nth-child(1) { animation-delay: 0.05s; }
.deliverable-card:nth-child(2) { animation-delay: 0.1s; }
.deliverable-card:nth-child(3) { animation-delay: 0.15s; }
.deliverable-card:nth-child(4) { animation-delay: 0.2s; }
.deliverable-card:nth-child(5) { animation-delay: 0.25s; }
.deliverable-card:nth-child(6) { animation-delay: 0.3s; }

.stat-box:nth-child(1) { animation-delay: 0.1s; }
.stat-box:nth-child(2) { animation-delay: 0.15s; }
.stat-box:nth-child(3) { animation-delay: 0.2s; }
.stat-box:nth-child(4) { animation-delay: 0.25s; }

/* Empty State */
.deliverables-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border: 2px dashed var(--grey-lighter);
    border-radius: var(--radius-xl);
}

.deliverables-empty svg {
    color: var(--grey-light);
    margin-bottom: 1.5rem;
}

.deliverables-empty h3 {
    font-size: 1.5rem;
    color: var(--grey-dark);
    margin: 0 0 0.75rem;
}

.deliverables-empty p {
    font-size: 1rem;
    color: var(--grey-medium);
    margin: 0 0 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

