/* Custom CSS for SIDRA IT */

/* Font Family */
body {
    font-family: 'Inter', sans-serif;
}

/* Custom Colors */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.navbar-brand .navbar-logo,
.navbar-logo {
    height: 60px !important;
    max-height: 60px !important;
    min-height: 60px !important;
    width: auto !important;
    margin-right: 10px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
}


.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-pill {
    border-radius: 30px !important;
    padding: 8px 22px !important;
    margin: 0 6px;
    font-weight: 600;
    background: transparent;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    position: relative;
}
.nav-pill:hover, .nav-pill.active {
    background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(0,198,255,0.12);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Add your custom styles below */

.custom-navbar-bg {
    background-color: #7533f9 !important;
}

/* Cards */
.card {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.service-icon {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
}

/* Progress Bars */
.progress {
    border-radius: 20px;
    height: 8px;
}

.progress-bar {
    border-radius: 20px;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Footer */
footer {
    background-color: #1a1a1a !important;
}

footer a:hover {
    color: var(--primary-color) !important;
    transition: color 0.3s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Custom Spacing */
.py-6 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.my-6 {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

/* Status Badges */
.status-pending {
    background-color: #ffc107;
    color: #212529;
}

.status-approved {
    background-color: #28a745;
    color: white;
}

.status-active {
    background-color: #17a2b8;
    color: white;
}

.status-completed {
    background-color: #6f42c1;
    color: white;
}

.status-cancelled {
    background-color: #dc3545;
    color: white;
}

/* Dashboard Cards */
.dashboard-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.dashboard-card .card-header {
    background: transparent;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
}

/* Invoice Styles */
.invoice-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.invoice-item {
    border-bottom: 1px solid #e9ecef;
}

.invoice-item:last-child {
    border-bottom: none;
}

/* Ticket Styles */
.ticket-priority-low {
    border-left: 4px solid #28a745;
}

.ticket-priority-medium {
    border-left: 4px solid #ffc107;
}

.ticket-priority-high {
    border-left: 4px solid #fd7e14;
}

.ticket-priority-critical {
    border-left: 4px solid #dc3545;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .container {
        max-width: none;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom Select */
.form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

/* Tooltip Customization */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    background-color: var(--dark-color);
    border-radius: 6px;
}

/* Modal Customization */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 2px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    background-color: rgba(0, 123, 255, 0.05);
    border-color: #0056b3;
}

.file-upload-area.dragover {
    background-color: rgba(0, 123, 255, 0.1);
    border-color: #0056b3;
}

/* Success/Error Messages */
.message-success {
    background-color: #d1edff;
    color: #0c5460;
    border: 1px solid #b8daff;
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Service Select Dropdown Customization */
#service-select {
    border-radius: 12px;
    border: 2px solid #7533f9;
    font-size: 1.15rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    color: #2d3748;
    box-shadow: 0 2px 8px rgba(117, 51, 249, 0.04);
    transition: border-color 0.3s, box-shadow 0.3s;
}
#service-select option {
    background: #fff;
    color: #2d3748;
}
#service-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    background: #fff;
    outline: none;
}
#service-select option[disabled] {
    color: #aaa;
}
