/* Custom styles for BusinessHub CRM */

/* Navigation transitions */
.nav-link {
    transition: all 0.2s ease-in-out;
    position: relative;
}

.nav-link:hover {
    transform: translateY(-2px);
}

.nav-link.active {
    color: #2563eb !important;
    border-bottom: 2px solid #2563eb;
}

/* Card hover effects */
.card-hover {
    transition: all 0.2s ease-in-out;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Status badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-new { background-color: #dbeafe; color: #1e40af; }
.status-contacted { background-color: #fef3c7; color: #92400e; }
.status-qualified { background-color: #d1fae5; color: #065f46; }
.status-proposal { background-color: #e0e7ff; color: #3730a3; }
.status-negotiation { background-color: #fce7f3; color: #be185d; }
.status-closed-won { background-color: #d1fae5; color: #065f46; }
.status-closed-lost { background-color: #fee2e2; color: #991b1b; }

.status-active { background-color: #d1fae5; color: #065f46; }
.status-discontinued { background-color: #fee2e2; color: #991b1b; }
.status-out-of-stock { background-color: #fef2f2; color: #dc2626; }
.status-low-stock { background-color: #fef3c7; color: #d97706; }

/* Form styles */
.form-input {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.2s ease-in-out;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

/* Table styles */
.table-row:hover {
    background-color: #f9fafb;
}

/* Button styles */
.btn-primary {
    background-color: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: background-color 0.15s ease-in-out;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: background-color 0.15s ease-in-out;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-danger {
    background-color: #dc2626;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: background-color 0.15s ease-in-out;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

/* Loading spinner */
.spinner {
    border: 2px solid #f3f4f6;
    border-top: 2px solid #2563eb;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* AI Insights highlight */
.ai-insight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 0.5rem 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-link {
        padding: 0.5rem;
        display: block;
    }
    
    .modal-content {
        width: 95%;
        padding: 1rem;
    }
}

/* Chart container styles */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Google Workspace integration styles */
.google-connect {
    background: #4285f4;
    color: white;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: background-color 0.15s ease-in-out;
    border: none;
    cursor: pointer;
}

.google-connect:hover {
    background: #3367d6;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 500;
    z-index: 1001;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background-color: #10b981;
}

.notification.error {
    background-color: #ef4444;
}

.notification.info {
    background-color: #3b82f6;
}

/* Priority indicators */
.priority-high { color: #dc2626; }
.priority-medium { color: #d97706; }
.priority-low { color: #059669; }
.priority-urgent { color: #7c2d12; font-weight: bold; }

/* Progress bars */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    transition: width 0.3s ease-in-out;
}