 
/* Porto Admin Style - DefensurSeguridad */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

/* Wrapper */
.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar Styles - Porto Admin Style */
.sidebar {
    width: 250px;
    min-height: 100vh;
    background: #2c3e50;
    color: #ecf0f1;
    transition: all 0.3s;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 20px;
    background: #34495e;
    border-bottom: 1px solid #34495e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-brand {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ecf0f1;
}

.sidebar .nav {
    padding: 20px 0;
}

.sidebar .nav-item {
    margin: 2px 0;
}

.sidebar .nav-link {
    color: #bdc3c7;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 0;
    position: relative;
    font-weight: 400;
}

.sidebar .nav-link:hover {
    color: #ecf0f1;
    background: #34495e;
    padding-left: 25px;
}

.sidebar .nav-link.active {
    color: #ecf0f1;
    background: #3498db;
    border-right: 3px solid #2980b9;
}

.sidebar .nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Content Area */
.content {
    width: calc(100% - 250px);
    margin-left: 250px;
    transition: all 0.3s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

.main-content {
    flex: 1;
    padding: 30px;
    background-color: #f8f9fa;
}

/* Header Styles - Porto Admin Style */
.header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    padding: 8px 40px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #f8f9fa;
    font-size: 14px;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.header-notifications .btn,
.header-profile .btn {
    color: #6c757d;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
}

.header-notifications .btn:hover,
.header-profile .btn:hover {
    background: #f8f9fa;
    color: #495057;
}

.profile-avatar {
    width: 35px;
    height: 35px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.profile-info {
    margin-left: 10px;
    text-align: left;
}

.profile-name {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.profile-role {
    display: block;
    color: #6c757d;
    font-size: 12px;
}

/* Cards - Porto Admin Style */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
    margin-bottom: 20px;
    background: #fff;
}

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

.card-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 20px;
    border-radius: 8px 8px 0 0 !important;
    font-weight: 600;
    color: #333;
}

.card-body {
    padding: 20px;
}

/* Buttons - Porto Admin Style */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-primary {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
    transform: translateY(-1px);
}

.btn-outline-primary {
    border-color: #3498db;
    color: #3498db;
}

.btn-outline-primary:hover {
    background-color: #3498db;
    border-color: #3498db;
    color: #fff;
}

.btn-success {
    background: #27ae60;
    border-color: #27ae60;
}

.btn-success:hover {
    background: #229954;
    border-color: #229954;
}

.btn-warning {
    background: #f39c12;
    border-color: #f39c12;
}

.btn-warning:hover {
    background: #e67e22;
    border-color: #e67e22;
}

.btn-danger {
    background: #e74c3c;
    border-color: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
    border-color: #c0392b;
}

.btn-info {
    background: #17a2b8;
    border-color: #17a2b8;
}

.btn-info:hover {
    background: #138496;
    border-color: #138496;
}

/* Tables - Porto Admin Style */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    background: #fff;
}

.table thead th {
    background: #f8f9fa;
    color: #495057;
    border: none;
    font-weight: 600;
    padding: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-color: #f1f3f4;
    font-size: 14px;
}

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

/* Alerts - Porto Admin Style */
.alert {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #27ae60;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #e74c3c;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #f39c12;
}

/* Forms - Porto Admin Style */
.form-control {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    transition: all 0.3s;
    font-size: 14px;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-select {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    font-size: 14px;
}

/* Badges - Porto Admin Style */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
}

.bg-primary { background-color: #3498db !important; }
.bg-success { background-color: #27ae60 !important; }
.bg-danger { background-color: #e74c3c !important; }
.bg-warning { background-color: #f39c12 !important; }
.bg-info { background-color: #17a2b8 !important; }
.bg-secondary { background-color: #6c757d !important; }

/* Footer */
.footer {
    background-color: #fff;
    padding: 20px 30px;
    margin-top: auto;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }
    
    .sidebar.active {
        margin-left: 0;
    }
    
    .content {
        width: 100%;
        margin-left: 0;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .header {
        padding: 15px 20px;
    }
    
    .search-box {
        width: 200px;
    }
    
    .profile-info {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 15px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .search-box {
        width: 150px;
    }
    
    .header {
        padding: 10px 15px;
    }
}

/* Animation for sidebar toggle */
.sidebar.active {
    margin-left: 0;
}

/* Custom scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Focus styles */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

/* Additional Porto Admin specific styles */
.text-primary { color: #3498db !important; }
.text-success { color: #27ae60 !important; }
.text-danger { color: #e74c3c !important; }
.text-warning { color: #f39c12 !important; }
.text-info { color: #17a2b8 !important; }
.text-muted { color: #6c757d !important; }

/* Dropdown styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 8px 0;
}

.dropdown-item {
    padding: 8px 20px;
    font-size: 14px;
    transition: all 0.3s;
}

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

.dropdown-header {
    font-weight: 600;
    color: #495057;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 20px;
}