/**
 * SD Positivo Modern Design System
 * Complete CSS overhaul for modern, clean, professional look
 * Applies globally across all pages
 */

/* ========================================
   GLOBAL FOUNDATION
   ======================================== */

* {
    box-sizing: border-box;
}

body {
    background: #f5f7fa !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #2c3e50 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.container {
    max-width: 1200px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Smooth transitions for interactive elements */
a, button, .btn, .content-box, .panel, .form-control, .icon-ar {
    transition: all 0.3s ease !important;
}

/* Remove text decoration from all links */
a {
    text-decoration: none !important;
    color: #667eea !important;
}

a:hover {
    color: #764ba2 !important;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 15px !important;
    line-height: 1.3 !important;
}

h1 {
    font-size: 32px !important;
}

h2 {
    font-size: 28px !important;
}

h3 {
    font-size: 24px !important;
}

h4 {
    font-size: 20px !important;
}

h5 {
    font-size: 18px !important;
}

h6 {
    font-size: 16px !important;
}

p {
    line-height: 1.7 !important;
    margin-bottom: 15px !important;
}

/* Section titles - clean and simple */
.section-title {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    border-bottom: 2px solid #e1e8ed !important;
    padding-bottom: 12px !important;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    overflow: visible !important;
}

/* Remove legacy first-letter styling */
.section-title:first-letter {
    color: inherit !important;
}

.page-title {
    color: #2c3e50 !important;
    font-weight: 700 !important;
    font-size: 28px !important;
    margin-bottom: 20px !important;
}

/* ========================================
   LAYOUT & STRUCTURE
   ======================================== */

.sb-site-container {
    background: #f5f7fa !important;
}

.boxed {
    background: transparent !important;
}

.row {
    margin-bottom: 20px !important;
}

section {
    margin-bottom: 30px !important;
}

/* Reduce spacing after main-header to make page more compact */
.main-header + .container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Better spacing for columns */
.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1,
.col-xs-2, .col-sm-2, .col-md-2, .col-lg-2,
.col-xs-3, .col-sm-3, .col-md-3, .col-lg-3,
.col-xs-4, .col-sm-4, .col-md-4, .col-lg-4,
.col-xs-5, .col-sm-5, .col-md-5, .col-lg-5,
.col-xs-6, .col-sm-6, .col-md-6, .col-lg-6,
.col-xs-7, .col-sm-7, .col-md-7, .col-lg-7,
.col-xs-8, .col-sm-8, .col-md-8, .col-lg-8,
.col-xs-9, .col-sm-9, .col-md-9, .col-lg-9,
.col-xs-10, .col-sm-10, .col-md-10, .col-lg-10,
.col-xs-11, .col-sm-11, .col-md-11, .col-lg-11,
.col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    background: white !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    margin-bottom: 0 !important;
}

.navbar-nav > li > a {
    color: #2c3e50 !important;
    font-weight: 500 !important;
    padding: 15px 18px !important;
    transition: all 0.3s ease !important;
}

.navbar-nav > li > a:hover {
    color: #667eea !important;
    background: #f5f7fa !important;
}

.navbar-nav > li.active > a {
    color: #667eea !important;
    background: #f5f7fa !important;
}

/* Dropdown menus */
.dropdown-menu {
    border: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
    border-radius: 8px !important;
    padding: 8px 0 !important;
}

.dropdown-menu > li > a {
    padding: 10px 20px !important;
    color: #2c3e50 !important;
    transition: all 0.2s ease !important;
}

.dropdown-menu > li > a:hover {
    background: #f5f7fa !important;
    color: #667eea !important;
}

/* ========================================
   MAIN HEADER - Simplified, compact design
   ======================================== */

.main-header {
    background: #0099da !important;
    padding: 15px 0 !important;
    margin-bottom: 15px !important;
    border-bottom: none !important;
}

.main-header .container {
    position: relative !important;
}

.main-header .page-title {
    color: white !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    line-height: 1.2 !important;
}

/* Breadcrumb styling inside main-header */
.main-header .breadcrumb {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: white !important;
    font-size: 14px !important;
}

.main-header .breadcrumb > li {
    color: rgba(255, 255, 255, 0.9) !important;
}

.main-header .breadcrumb > li.active {
    color: white !important;
    font-weight: 600 !important;
}

.main-header .breadcrumb > li + li:before {
    content: "›" !important;
    padding: 0 8px !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.main-header .breadcrumb a {
    color: white !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-bottom: 1px solid transparent !important;
    transition: border-color 0.2s ease !important;
}

.main-header .breadcrumb a:hover {
    border-bottom-color: white !important;
}

.main-header .breadcrumb .badge {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    border-radius: 10px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

/* Icon styling in breadcrumb */
.main-header .breadcrumb .icon-ar {
    background: rgba(255, 255, 255, 0.2) !important;
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    margin: 0 5px !important;
    transition: all 0.3s ease !important;
    vertical-align: middle !important;
}

.main-header .breadcrumb .icon-ar:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1) !important;
}

.main-header .breadcrumb .icon-ar a {
    color: white !important;
    border: none !important;
}

.main-header .breadcrumb .icon-ar i {
    font-size: 18px !important;
    color: white !important;
}

/* Home page breadcrumb with multiple action links */
.main-header .breadcrumb li {
    display: inline-block !important;
    vertical-align: middle !important;
}

.main-header .breadcrumb li a {
    background: transparent !important;
    padding: 8px 16px !important;
    border-radius: 0 !important;
    display: inline-block !important;
    margin: 0 5px !important;
    transition: all 0.3s ease !important;
    border-bottom: none !important;
    border: none !important;
}

.main-header .breadcrumb li a:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

.main-header .breadcrumb li.active {
    display: none !important;
}

/* Hide manual spacing spans in breadcrumb */
.main-header .breadcrumb span:not(.icon-ar):not(.badge) {
    display: none !important;
}

/* Override icon size globally to be more reasonable */
.icon-ar {
    width: 50px !important;
    height: 50px !important;
    font-size: 22px !important;
}

/* ========================================
   BREADCRUMBS (standalone, not in main-header)
   ======================================== */

.breadcrumb {
    background: white !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e1e8ed !important;
    font-size: 14px !important;
    margin-bottom: 20px !important;
}

.breadcrumb > li + li:before {
    content: "›" !important;
    padding: 0 8px !important;
    color: #999 !important;
}

.breadcrumb > li > a {
    color: #667eea !important;
    font-weight: 500 !important;
}

.breadcrumb > li > a:hover {
    color: #764ba2 !important;
}

.breadcrumb > .active {
    color: #6c757d !important;
}

.breadcrumb .badge {
    background: #e74c3c !important;
    color: white !important;
    border-radius: 10px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

/* ========================================
   CONTENT BOXES
   ======================================== */

.content-box {
    background: white !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    border: 1px solid #e1e8ed !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.content-box:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
}

.content-box-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 10px !important;
}

.content-box p {
    color: #6c757d !important;
    font-size: 14px !important;
    margin-bottom: 0 !important;
}

/* Box variants */
.box-default {
    background: white !important;
    border: 1px solid #e1e8ed !important;
}

.box-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: white !important;
}

.box-primary .content-box-title,
.box-primary p {
    color: white !important;
}

/* Featured boxes with gradient */
.box-featured-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3) !important;
}

.box-featured-primary:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
}

.box-featured-primary .content-box-title,
.box-featured-primary p {
    color: white !important;
}

.box-featured-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    border: none !important;
    color: white !important;
}

.box-featured-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    border: none !important;
    color: white !important;
}

.box-featured-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    border: none !important;
    color: white !important;
}

/* 3D effect boxes */
.box-3d-blue {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
    border: none !important;
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.2) !important;
}

.box-3d-blue:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.3) !important;
}

.box-3d-blue .content-box-title {
    color: #1565C0 !important;
}

.box-3d-cyan {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%) !important;
    border: none !important;
    box-shadow: 0 6px 16px rgba(0, 150, 136, 0.2) !important;
}

.box-3d-cyan:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0, 150, 136, 0.3) !important;
}

.box-3d-cyan .content-box-title {
    color: #00695C !important;
}

.box-3d-teal {
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e0f2 100%) !important;
    border: none !important;
    box-shadow: 0 6px 16px rgba(3, 169, 244, 0.2) !important;
}

.box-3d-teal:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(3, 169, 244, 0.3) !important;
}

.box-3d-teal .content-box-title {
    color: #0277BD !important;
}

.box-3d-sky {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
    border: none !important;
    box-shadow: 0 6px 16px rgba(66, 165, 245, 0.2) !important;
}

.box-3d-sky:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(66, 165, 245, 0.3) !important;
}

.box-3d-sky .content-box-title {
    color: #1976D2 !important;
}

/* ========================================
   ICONS
   ======================================== */

.icon-ar {
    border-radius: 50% !important;
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 25px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.icon-ar:hover {
    transform: scale(1.1) rotate(5deg) !important;
}

.icon-ar i {
    line-height: 1 !important;
}

/* Icon color variants */
.icon-primary {
    background: #667eea !important;
    color: white !important;
}

.icon-success {
    background: #38ef7d !important;
    color: white !important;
}

.icon-info {
    background: #00f2fe !important;
    color: white !important;
}

.icon-warning {
    background: #f5576c !important;
    color: white !important;
}

.icon-blue {
    background: #2196F3 !important;
    color: white !important;
}

/* ========================================
   PANELS
   ======================================== */

.panel {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    margin-bottom: 20px !important;
    background: white !important;
}

.panel-heading {
    border-radius: 12px 12px 0 0 !important;
    border: none !important;
    padding: 16px 20px !important;
    background: #f8f9fa !important;
    color: #2c3e50 !important;
    font-weight: 600 !important;
}

.panel-body {
    padding: 20px !important;
}

.panel-footer {
    border-radius: 0 0 12px 12px !important;
    border: none !important;
    background: #f8f9fa !important;
    padding: 16px 20px !important;
}

/* Panel variants */
.panel-primary .panel-heading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.panel-success .panel-heading {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    color: white !important;
}

.panel-info .panel-heading {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    color: white !important;
}

.panel-warning .panel-heading {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: white !important;
}

.panel-danger .panel-heading {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%) !important;
    color: white !important;
}

/* ========================================
   FORMS
   ======================================== */

.form-control {
    border-radius: 8px !important;
    border: 2px solid #e1e8ed !important;
    padding: 10px 15px !important;
    font-size: 15px !important;
    color: #2c3e50 !important;
    background: white !important;
    height: auto !important;
}

.form-control:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    outline: none !important;
}

.form-control:disabled {
    background: #f5f7fa !important;
    cursor: not-allowed !important;
}

select.form-control {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c3e50' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 35px !important;
}

textarea.form-control {
    resize: vertical !important;
    min-height: 100px !important;
}

.form-group {
    margin-bottom: 20px !important;
}

label {
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 8px !important;
    display: block !important;
    font-size: 14px !important;
}

.help-block {
    color: #e74c3c !important;
    font-size: 13px !important;
    margin-top: 5px !important;
}

.has-error .form-control {
    border-color: #e74c3c !important;
}

.has-error label {
    color: #e74c3c !important;
}

/* Form inline improvements */
.form-inline .form-group {
    margin-right: 15px !important;
    margin-bottom: 10px !important;
}

.form-inline .form-control {
    display: inline-block !important;
    width: auto !important;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    border: none !important;
    font-size: 15px !important;
    cursor: pointer !important;
}

.btn:hover {
    transform: translateY(-2px) !important;
}

.btn:active {
    transform: translateY(0) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4) !important;
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(56, 239, 125, 0.3) !important;
}

.btn-success:hover {
    box-shadow: 0 6px 16px rgba(56, 239, 125, 0.4) !important;
}

.btn-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3) !important;
}

.btn-info:hover {
    box-shadow: 0 6px 16px rgba(79, 172, 254, 0.4) !important;
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3) !important;
}

.btn-warning:hover {
    box-shadow: 0 6px 16px rgba(245, 87, 108, 0.4) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3) !important;
}

.btn-danger:hover {
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4) !important;
}

.btn-default {
    background: white !important;
    color: #2c3e50 !important;
    border: 2px solid #e1e8ed !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

.btn-default:hover {
    border-color: #667eea !important;
    color: #667eea !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Small buttons */
.btn-sm {
    padding: 8px 16px !important;
    font-size: 13px !important;
}

/* Large buttons */
.btn-lg {
    padding: 16px 32px !important;
    font-size: 17px !important;
}

/* Block buttons */
.btn-block {
    width: 100% !important;
    display: block !important;
}

/* ========================================
   ALERTS
   ======================================== */

.alert {
    border-radius: 10px !important;
    border: none !important;
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
    color: #155724 !important;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%) !important;
    color: #0c5460 !important;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
    color: #856404 !important;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%) !important;
    color: #721c24 !important;
}

/* ========================================
   TABLES
   ======================================== */

.table {
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.table thead {
    background: #f8f9fa !important;
}

.table thead th {
    font-weight: 600 !important;
    color: #2c3e50 !important;
    border-bottom: 2px solid #e1e8ed !important;
    padding: 15px !important;
    font-size: 14px !important;
}

.table tbody td {
    padding: 15px !important;
    color: #6c757d !important;
    border-bottom: 1px solid #f1f3f5 !important;
}

.table tbody tr:hover {
    background: #f8f9fa !important;
}

.table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Striped tables */
.table-striped tbody tr:nth-of-type(odd) {
    background: #f8f9fa !important;
}

/* Bordered tables */
.table-bordered {
    border: 1px solid #e1e8ed !important;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #e1e8ed !important;
}

/* ========================================
   TABS
   ======================================== */

.nav-tabs {
    border-bottom: 2px solid #e1e8ed !important;
    margin-bottom: 20px !important;
}

.nav-tabs > li > a {
    border: none !important;
    border-radius: 0 !important;
    color: #6c757d !important;
    padding: 12px 20px !important;
    font-weight: 500 !important;
    margin-right: 5px !important;
}

.nav-tabs > li > a:hover {
    background: transparent !important;
    color: #667eea !important;
    border-bottom: 2px solid #667eea !important;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    color: #667eea !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid #667eea !important;
    font-weight: 600 !important;
}

.tab-content {
    background: white !important;
    padding: 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* ========================================
   MODALS
   ======================================== */

.modal-content {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
}

.modal-header {
    border-bottom: 1px solid #e1e8ed !important;
    padding: 20px 24px !important;
    border-radius: 12px 12px 0 0 !important;
}

.modal-title {
    font-weight: 600 !important;
    color: #2c3e50 !important;
}

.modal-body {
    padding: 24px !important;
}

.modal-footer {
    border-top: 1px solid #e1e8ed !important;
    padding: 20px 24px !important;
    border-radius: 0 0 12px 12px !important;
}

/* ========================================
   BADGES & LABELS
   ======================================== */

.badge {
    border-radius: 12px !important;
    padding: 5px 10px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}

.label {
    border-radius: 6px !important;
    padding: 4px 8px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}

.label-primary {
    background: #667eea !important;
}

.label-success {
    background: #38ef7d !important;
}

.label-info {
    background: #00f2fe !important;
}

.label-warning {
    background: #f5576c !important;
}

.label-danger {
    background: #ff6b6b !important;
}

/* ========================================
   LISTS
   ======================================== */

.list-group {
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.list-group-item {
    background: white !important;
    border: none !important;
    border-bottom: 1px solid #f1f3f5 !important;
    padding: 15px 20px !important;
    color: #2c3e50 !important;
}

.list-group-item:first-child {
    border-radius: 12px 12px 0 0 !important;
}

.list-group-item:last-child {
    border-radius: 0 0 12px 12px !important;
    border-bottom: none !important;
}

.list-group-item:hover {
    background: #f8f9fa !important;
}

.list-group-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    display: flex !important;
    gap: 5px !important;
}

.pagination > li > a,
.pagination > li > span {
    border: none !important;
    border-radius: 8px !important;
    color: #667eea !important;
    padding: 10px 15px !important;
    font-weight: 500 !important;
    background: white !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

.pagination > li > a:hover {
    background: #f5f7fa !important;
    color: #764ba2 !important;
}

.pagination > .active > a,
.pagination > .active > span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

/* ========================================
   IMAGES & MEDIA
   ======================================== */

img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
}

/* E-book covers */
img[src*="capas/"] {
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.3s ease !important;
}

img[src*="capas/"]:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Dicas/tips images */
img[src*="dicas/"] {
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* User photos */
img[src*="users/"] {
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* ========================================
   FOOTER
   ======================================== */

#footer {
    background: #2c3e50 !important;
    color: white !important;
    padding: 30px 0 !important;
    margin-top: 50px !important;
    text-align: center !important;
}

#footer p {
    margin: 0 !important;
    color: #ecf0f1 !important;
}

#footer a {
    color: #667eea !important;
    font-weight: 600 !important;
}

#footer a:hover {
    color: #764ba2 !important;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.text-muted {
    color: #6c757d !important;
}

.text-primary {
    color: #667eea !important;
}

.text-success {
    color: #38ef7d !important;
}

.text-info {
    color: #00f2fe !important;
}

.text-warning {
    color: #f5576c !important;
}

.text-danger {
    color: #ff6b6b !important;
}

.bg-primary {
    background: #667eea !important;
    color: white !important;
}

.bg-success {
    background: #38ef7d !important;
    color: white !important;
}

.bg-info {
    background: #00f2fe !important;
    color: white !important;
}

.bg-warning {
    background: #f5576c !important;
    color: white !important;
}

.bg-danger {
    background: #ff6b6b !important;
    color: white !important;
}

/* Spacing utilities */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.ml-0 { margin-left: 0 !important; }
.mr-0 { margin-right: 0 !important; }

.m-1 { margin: 5px !important; }
.mt-1 { margin-top: 5px !important; }
.mb-1 { margin-bottom: 5px !important; }
.ml-1 { margin-left: 5px !important; }
.mr-1 { margin-right: 5px !important; }

.m-2 { margin: 10px !important; }
.mt-2 { margin-top: 10px !important; }
.mb-2 { margin-bottom: 10px !important; }
.ml-2 { margin-left: 10px !important; }
.mr-2 { margin-right: 10px !important; }

.m-3 { margin: 15px !important; }
.mt-3 { margin-top: 15px !important; }
.mb-3 { margin-bottom: 15px !important; }
.ml-3 { margin-left: 15px !important; }
.mr-3 { margin-right: 15px !important; }

.m-4 { margin: 20px !important; }
.mt-4 { margin-top: 20px !important; }
.mb-4 { margin-bottom: 20px !important; }
.ml-4 { margin-left: 20px !important; }
.mr-4 { margin-right: 20px !important; }

.p-0 { padding: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.pl-0 { padding-left: 0 !important; }
.pr-0 { padding-right: 0 !important; }

.p-1 { padding: 5px !important; }
.pt-1 { padding-top: 5px !important; }
.pb-1 { padding-bottom: 5px !important; }
.pl-1 { padding-left: 5px !important; }
.pr-1 { padding-right: 5px !important; }

.p-2 { padding: 10px !important; }
.pt-2 { padding-top: 10px !important; }
.pb-2 { padding-bottom: 10px !important; }
.pl-2 { padding-left: 10px !important; }
.pr-2 { padding-right: 10px !important; }

.p-3 { padding: 15px !important; }
.pt-3 { padding-top: 15px !important; }
.pb-3 { padding-bottom: 15px !important; }
.pl-3 { padding-left: 15px !important; }
.pr-3 { padding-right: 15px !important; }

.p-4 { padding: 20px !important; }
.pt-4 { padding-top: 20px !important; }
.pb-4 { padding-bottom: 20px !important; }
.pl-4 { padding-left: 20px !important; }
.pr-4 { padding-right: 20px !important; }

/* ========================================
   HEADER-FULL (Top bar with logo)
   ======================================== */

#header-full-top {
    background: #2c3e50 !important;
    padding: 15px 0 !important;
    margin-bottom: 0 !important;
}

#header-full-top .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.header-full-title {
    flex: 1 !important;
    margin: 0 !important;
}

.header-full-title h1 {
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 0 0 5px 0 !important;
    color: white !important;
    line-height: 1.2 !important;
}

.header-full-title h1 a {
    color: white !important;
    text-decoration: none !important;
}

.header-full-title h1 span {
    color: #667eea !important;
}

.header-full-title p {
    margin: 0 !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
}

/* Username display on top right */
#header-full-top .text-right {
    color: white !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    margin-left: 20px !important;
}

/* Fix the row layout in header */
#header-full-top .row {
    margin: 0 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    body {
        font-size: 14px !important;
    }

    h1 {
        font-size: 26px !important;
    }

    h2 {
        font-size: 22px !important;
    }

    h3 {
        font-size: 20px !important;
    }

    .section-title {
        font-size: 20px !important;
    }

    .page-title {
        font-size: 24px !important;
    }

    .breadcrumb {
        font-size: 12px !important;
        padding: 10px 15px !important;
    }

    .content-box {
        padding: 15px !important;
    }

    .panel-heading,
    .panel-body,
    .panel-footer {
        padding: 15px !important;
    }

    .btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }

    .icon-ar {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }

    .navbar-nav > li > a {
        padding: 12px 15px !important;
    }

    .form-control {
        font-size: 14px !important;
    }

    .table thead th,
    .table tbody td {
        padding: 10px !important;
        font-size: 13px !important;
    }

    /* Header-full responsive */
    .header-full-title h1 {
        font-size: 22px !important;
    }

    .header-full-title p {
        font-size: 12px !important;
    }

    #header-full-top .text-right {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .content-box {
        padding: 12px !important;
    }

    .btn {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

::-webkit-scrollbar {
    width: 10px !important;
    height: 10px !important;
}

::-webkit-scrollbar-track {
    background: #f1f3f5 !important;
    border-radius: 10px !important;
}

::-webkit-scrollbar-thumb {
    background: #667eea !important;
    border-radius: 10px !important;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2 !important;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    body {
        background: white !important;
        color: black !important;
    }

    .navbar,
    .breadcrumb,
    .btn,
    #footer {
        display: none !important;
    }

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