/* Custom CSS for TapeCRM */

/* Navigation Items */
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #9CA3AF;
    transition: all 0.2s;
    text-decoration: none;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.nav-item.active {
    background-color: #F59E0B;
    color: #FFFFFF;
}

/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    animation: fadeIn 0.2s;
}

.modal-content {
    background: white;
    border-radius: 0.75rem;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 100;
    animation: slideInRight 0.3s;
}

.toast.success {
    border-left: 4px solid #10B981;
}

.toast.error {
    border-left: 4px solid #EF4444;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background-color: #F9FAFB;
    border-bottom: 2px solid #E5E7EB;
}

.data-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6B7280;
    white-space: nowrap;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #F3F4F6;
}

.data-table tbody tr:hover {
    background-color: #F9FAFB;
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    white-space: nowrap;
}

.badge-new { background-color: #DBEAFE; color: #1E40AF; }
.badge-quoted { background-color: #FEF3C7; color: #92400E; }
.badge-negotiating { background-color: #E0E7FF; color: #3730A3; }
.badge-won { background-color: #D1FAE5; color: #065F46; }
.badge-lost { background-color: #FEE2E2; color: #991B1B; }
.badge-unpaid { background-color: #FEE2E2; color: #991B1B; }
.badge-partial { background-color: #FEF3C7; color: #92400E; }
.badge-paid { background-color: #D1FAE5; color: #065F46; }
.badge-pending { background-color: #E5E7EB; color: #374151; }
.badge-shipped { background-color: #DBEAFE; color: #1E40AF; }
.badge-delivered { background-color: #D1FAE5; color: #065F46; }
.badge-high { background-color: #FEE2E2; color: #991B1B; }
.badge-medium { background-color: #FEF3C7; color: #92400E; }
.badge-low { background-color: #E0F2FE; color: #075985; }

/* Loading Spinner */
.spinner {
    border: 3px solid #F3F4F6;
    border-top: 3px solid #F59E0B;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .modal-backdrop {
        background: white;
    }
    
    .modal-content {
        max-width: 100%;
        max-height: none;
        box-shadow: none;
    }
}
