/* Custom styles for PQRSD system */

/* Variables */
:root {
    --primary-color: #6C2BD9;
    --primary-hover: #5a23b5;
    --secondary-color: #9F7AEA;
    --text-color: #2D3748;
    --bg-light: #F8F9FA;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
}

/* Navbar customization */
.navbar {
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.navbar-brand img {
    height: 2.5rem;
}

/* Sidebar customization */
.sidebar {
    width: 250px;
    background: white;
    border-right: 1px solid var(--border-color);
}

.sidebar .nav-link {
    color: var(--text-light);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(126, 58, 242, 0.05);
}

.sidebar .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(126, 58, 242, 0.1);
    font-weight: 500;
}

/* Card customization */
.card {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card.shadow-sm {
    box-shadow: var(--shadow) !important;
}

.card.shadow-sm:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
}

.card.bg-light {
    background-color: var(--bg-light) !important;
}

.card.bg-light:hover {
    transform: none;
}

.card-body {
    position: relative;
}

/* Forms */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(108, 43, 217, 0.25);
}

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.btn-lg {
    padding: 1rem 1.75rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Icons */
.bi {
    font-size: 1.25rem;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Lists */
.list-unstyled li {
    margin-bottom: 1rem;
}

.list-unstyled li:last-child {
    margin-bottom: 0;
}

.list-unstyled .bi {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Home page cards */
.bg-light.border-0 {
    background-color: #f8f9fa !important;
}

.bg-light.border-0:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card .list-unstyled li {
    display: flex;
    align-items: center;
}

.card .list-unstyled li i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* Form in card */
.card .form-control {
    border-radius: 0.375rem;
    border-color: var(--border-color);
    padding: 0.75rem 1rem;
}

.card .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

/* Button customization */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Form customization */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(126, 58, 242, 0.25);
}

/* Acento morado para títulos de tarjetas y cabeceras */
.accent-header {
    color: var(--primary-color) !important;
    font-weight: 500;
}
.accent-header-bg {
    background-color: #ede9fe !important;
}

/* Iconos principales en morado */
.icon-accent {
    color: var(--primary-color) !important;
}

/* Badge de estado en proceso/acento */
.badge-accent {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

/* Footer background color */
.footer-bg {
    background-color: #3C4796 !important;
    color: #fff;
}

/* Mobile optimizations */
@media (max-width: 991.98px) {
    .sidebar {
        left: -250px;
    }

    .sidebar.show {
        left: 0;
    }

    .content-with-sidebar {
        margin-left: 0;
    }

    body.sidebar-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        margin-left: 0 !important;
    }
}
