/* Folders Section Styles */
.folders-section {
    padding: 2rem;
    height: calc(100vh - 80px); /* Adjust based on header height */
    overflow: hidden;
}

.folders-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    height: 100%;
    margin-top: 1rem;
}

/* Sidebar */
.folders-sidebar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.folders-sidebar h4 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.folders-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Folder Card */
.folder-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.folder-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.folder-card.active {
    background: rgba(100, 255, 218, 0.1);
    border-color: var(--accent-primary);
}

.folder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.folder-header i {
    font-size: 1.2rem;
}

.folder-actions {
    opacity: 0;
    transition: opacity 0.2s;
}

.folder-card:hover .folder-actions {
    opacity: 1;
}

.folder-actions button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 2px 5px;
}

.folder-actions button:hover {
    color: var(--text-primary);
}

.folder-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.folder-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Create New Card */
.folder-card.create-new {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    background: transparent;
}

.folder-card.create-new:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Folder Content (Receipts List) */
.folder-content {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.folder-receipts-list {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.empty-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    font-style: italic;
}

/* Receipt Item */
.receipt-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background 0.2s;
}

.receipt-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.receipt-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.receipt-info {
    flex: 1;
}

.receipt-info h4 {
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.receipt-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.receipt-actions .btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem;
    transition: color 0.2s;
}

.receipt-actions .btn-icon:hover {
    color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .folders-layout {
        grid-template-columns: 1fr;
    }
    
    .folders-sidebar {
        max-height: 200px;
    }
}
