/* Simple, Clean Bootstrap 3 Improvements */

/* === SUBTLE PANEL IMPROVEMENTS === */
.panel {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.panel:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Clean panel headers */
.panel-primary .panel-heading {
    background: #337ab7;
    border-color: #337ab7;
}

.panel-green .panel-heading {
    background: #5cb85c;
    border-color: #5cb85c;
}

.panel-red .panel-heading {
    background: #5bc0de !important;
    border-color: #5bc0de !important;
}

.panel-heading {
    border-radius: 8px 8px 0 0;
    border-bottom: none;
}

.panel-footer {
    border-radius: 0 0 8px 8px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

/* === BETTER TYPOGRAPHY === */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.page-header {
    border-bottom: 2px solid #eee;
    font-weight: 600;
}

/* === CLEANER NAVBAR === */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    padding: 12px 15px;
}

.navbar-brand i.fa {
    font-size: 20px;
}

.navbar-brand > .navbar-brand-logo {
    height: 50px;
    max-height: 50px;
    width: auto;
    display: block;
}

.navbar-brand-badge {
    margin-left: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === SIDEBAR IMPROVEMENTS === */
.sidebar {
    background: #f8f9fa;
}

/* Sobrescribir regla específica de sb-admin-2.css */
@media(min-width:768px) {
    .sidebar {
        z-index: 1;
        position: absolute;
        width: 300px !important;
    }
    
    #page-wrapper {
        position: inherit;
        margin: 0 0 0 300px !important;
        padding: 0 30px;
        border-left: 1px solid #e7e7e7;
    }
}

/* === SIDEBAR MENU STYLING === */
#side-menu > li > a {
    color: #555;
    padding: 12px 60px 12px 15px; /* More right padding for badges */
    border-radius: 6px;
    margin: 2px 8px;
    transition: all 0.2s ease;
    position: relative;
    line-height: 1.4;
    min-height: 44px;
    display: block;
    word-wrap: break-word;
}

#side-menu > li > a:hover {
    background: #e9ecef;
    color: #337ab7;
}

/* === MODERN BADGES === */
.badge {
    border-radius: 12px;
    font-weight: 500;
    padding: 4px 8px;
    min-width: 20px;
    text-align: center;
    font-size: 11px;
}

/* Fix badge positioning in sidebar */
#side-menu .badge.pull-right {
    position: absolute !important;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    float: none !important;
}

/* Fix arrow positioning with badges */
#side-menu .fa.arrow {
    position: absolute !important;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    float: none !important;
}

.label {
    border-radius: 4px;
    font-weight: 500;
}

/* === BUTTON IMPROVEMENTS === */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .fa-5x {
        font-size: 3em !important;
    }
    
    .panel {
        margin-bottom: 15px;
    }
}
