/* AI-SM-Tools Custom Styles */

/* Root Variables */
:root {
    --ai-primary: #667eea;
    --ai-secondary: #764ba2;
    --ai-success: #11998e;
    --ai-warning: #f093fb;
    --ai-danger: #ff6b6b;
    --ai-dark: #2c3e50;
    --ai-light: #ecf0f1;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-secondary) 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white !important;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    transform: translateY(-1px);
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-secondary) 100%);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    border: none;
    padding: 1rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-secondary) 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(102, 126, 234, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--ai-success) 0%, #38ef7d 100%);
    border: none;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(17, 153, 142, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--ai-danger) 0%, #ff8e88 100%);
    border: none;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--ai-primary);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-secondary) 100%);
    color: white;
    border-radius: 15px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
}

.hero-section .display-4 {
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2rem 1rem;
    height: 100%;
}

.feature-card .fs-1 {
    font-size: 3rem !important;
    margin-bottom: 1rem;
}

/* Tables */
.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background-color: var(--ai-light);
    border: none;
    font-weight: 600;
    padding: 15px;
}

.table td {
    border: none;
    padding: 15px;
    vertical-align: middle;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: rgba(17, 153, 142, 0.1);
    color: var(--ai-success);
}

.alert-danger {
    background-color: rgba(255, 107, 107, 0.1);
    color: var(--ai-danger);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 10px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-section .display-4 {
        font-size: 2rem;
    }

    .card {
        margin-bottom: 15px;
    }

    .btn {
        font-size: 14px;
        padding: 8px 16px;
        margin-bottom: 5px;
    }

    .table-responsive {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-section .display-4 {
        font-size: 1.5rem;
    }

    .feature-card .fs-1 {
        font-size: 2rem !important;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Hindi Font Support */
.text-hindi {
    font-family: 'Noto Sans Devanagari', 'Arial Unicode MS', sans-serif;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom Utilities */
.text-ai-primary { color: var(--ai-primary); }
.text-ai-secondary { color: var(--ai-secondary); }
.text-ai-success { color: var(--ai-success); }
.bg-ai-primary { background-color: var(--ai-primary); }
.bg-ai-secondary { background-color: var(--ai-secondary); }
.bg-ai-success { background-color: var(--ai-success); }

/* Dashboard Specific */
.dashboard-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.stat-card {
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--ai-primary);
}

/* Billing System */
.billing-panel {
    background: white;
    border-radius: 10px;
    padding: 1rem;
}

.product-suggestion {
    cursor: pointer;
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.product-suggestion:hover {
    background-color: #f8f9fa;
}

/* Footer */
footer {
    margin-top: auto;
    background: var(--ai-dark) !important;
    color: white;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }

    .btn {
        display: none;
    }
}