/* Veyx PsiCompliance Custom Styles */

/* Alerts */
.alert {
    border-left: 4px solid;
    border-radius: 4px;
}

.alert-info {
    border-left-color: #0c5460;
}

.alert-success {
    border-left-color: #155724;
}

.alert-warning {
    border-left-color: #856404;
}

.alert-danger {
    border-left-color: #721c24;
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.is-invalid .form-control,
.is-invalid .form-select {
    border-color: #dc3545;
}

.is-invalid .form-control:focus,
.is-invalid .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Cards */
.card {
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 1rem 1.25rem;
    background-color: #f8f9fa;
    font-weight: 600;
}

.card-sm {
    border-radius: 4px;
}

.card-sm .card-body {
    padding: 0.75rem;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #495057;
    border-top: none;
}

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

/* Badges */
.badge {
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

/* Buttons */
.btn {
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #0066cc;
    border-color: #0066cc;
}

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

.btn-outline-primary {
    color: #0066cc;
    border-color: #0066cc;
}

.btn-outline-primary:hover {
    background-color: #0066cc;
    border-color: #0066cc;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

/* Progress Bars */
.progress {
    background-color: #e9ecef;
    border-radius: 4px;
}

.progress-bar {
    background-color: #0066cc;
}

/* Modals */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.8rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 0;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #495057;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    border-radius: 4px;
    transition: all 0.2s;
}

.sidebar .nav-link i {
    min-width: 20px;
    text-align: center;
}

.sidebar .nav-link:hover {
    background-color: #f1f3f5;
    color: #0066cc;
    transform: translateX(4px);
}

.sidebar .nav-link.active {
    background-color: #e7f1ff;
    color: #0066cc;
    font-weight: 600;
}

/* Metric Cards */
.metric-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.metric-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.metric-icon {
    font-size: 2.5rem;
    color: #0066cc;
    margin-right: 1.5rem;
    min-width: 70px;
    text-align: center;
}

.metric-content h6 {
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-content .value {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    line-height: 1;
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid #e9ecef;
}

.nav-tabs .nav-link {
    color: #495057;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: #0066cc;
    color: #0066cc;
}

.nav-tabs .nav-link.active {
    background-color: transparent;
    border-bottom-color: #0066cc;
    color: #0066cc;
    font-weight: 600;
}

/* Dropdowns */
.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 0.75rem 1rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0066cc;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.shadow {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.rounded-lg {
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .col-md-10 {
        max-width: 100%;
        margin-left: 0;
        padding: 1rem !important;
    }

    .metric-card {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1rem;
    }

    .metric-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .table {
        font-size: 0.85rem;
    }

    .btn-sm {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
}

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

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

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #0066cc;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0052a3;
}

/* Print Styles */
@media print {
    .navbar,
    .sidebar,
    .btn,
    .alert {
        display: none;
    }
}
