/* AdminLTE Style Admin Panel */
:root {
    --admin-primary: #3c8dbc;
    --admin-secondary: #00c0ef;
    --admin-success: #00a65a;
    --admin-info: #00c0ef;
    --admin-warning: #f39c12;
    --admin-danger: #dd4b39;
    --admin-dark: #222d32;
    --admin-sidebar: #222d32;
    --admin-sidebar-hover: #1e282c;
}

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

body {
    font-family: 'Source Sans Pro', 'Segoe UI', sans-serif;
    background-color: #ecf0f5;
    color: #333;
}

/* Sidebar */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background: var(--admin-sidebar);
    color: #b8c7ce;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.admin-sidebar::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: #1a2226;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: #3c8dbc;
    border-radius: 3px;
}

.sidebar-brand {
    padding: 20px;
    background: #1a2226;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    border-bottom: 1px solid #1a2226;
}

.sidebar-brand i {
    color: #3c8dbc;
}

.sidebar-user {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #1a2226;
}

.sidebar-user-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3c8dbc, #00c0ef);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.8rem;
    color: white;
}

.sidebar-user-name {
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
}

.sidebar-user-role {
    color: #b8c7ce;
    font-size: 0.9rem;
}

.sidebar-user-branch {
    color: #3c8dbc;
    font-size: 0.85rem;
    margin-top: 5px;
}

.sidebar-user-location {
    color: #00a65a;
    font-size: 0.8rem;
    margin-top: 3px;
}

.sidebar-menu {
    list-style: none;
    padding: 10px 0;
}

.sidebar-menu-item {
    margin-bottom: 2px;
}

.sidebar-menu-link {
    display: block;
    padding: 12px 20px;
    color: #b8c7ce;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu-link:hover {
    background: var(--admin-sidebar-hover);
    color: white;
    border-left-color: #3c8dbc;
    padding-left: 25px;
}

.sidebar-menu-link.active {
    background: var(--admin-sidebar-hover);
    color: white;
    border-left-color: #3c8dbc;
}

.sidebar-menu-link i {
    width: 25px;
    margin-right: 10px;
    font-size: 1.1rem;
}

.sidebar-submenu {
    list-style: none;
    padding-left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #1a2226;
}

.sidebar-submenu.show {
    max-height: 500px;
}

.sidebar-submenu-link {
    display: block;
    padding: 10px 20px 10px 55px;
    color: #8aa4af;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.sidebar-submenu-link:hover {
    color: white;
    padding-left: 60px;
}

.sidebar-submenu-link i {
    margin-right: 8px;
}

/* Main Content */
.admin-content {
    margin-left: 250px;
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Top Navbar */
.admin-navbar {
    background: white;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
}

.admin-navbar-left h4 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.admin-navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f4f6f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-icon:hover {
    background: #3c8dbc;
    color: white;
}

.navbar-icon .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dd4b39;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
}

/* Content Area */
.content-wrapper {
    padding: 30px;
}

/* Breadcrumb */
.breadcrumb-custom {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-custom .breadcrumb-item {
    color: #666;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: #333;
    font-weight: 600;
}

/* Info Boxes (Dashboard Cards) */
.info-box {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.info-box-icon {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-right: 20px;
}

.info-box-icon.bg-primary {
    background: linear-gradient(135deg, #3c8dbc, #5fa8d3);
}

.info-box-icon.bg-success {
    background: linear-gradient(135deg, #00a65a, #00c96b);
}

.info-box-icon.bg-warning {
    background: linear-gradient(135deg, #f39c12, #f5b041);
}

.info-box-icon.bg-danger {
    background: linear-gradient(135deg, #dd4b39, #e74c3c);
}

.info-box-icon.bg-info {
    background: linear-gradient(135deg, #00c0ef, #3dd5f3);
}

.info-box-content {
    flex: 1;
}

.info-box-text {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-box-number {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

/* Cards */
.card-admin {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border: none;
}

.card-admin-header {
    background: white;
    border-bottom: 1px solid #f4f6f9;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
}

.card-admin-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.card-admin-tools {
    float: right;
}

.card-admin-body {
    padding: 20px;
}

/* Tables */
.table-admin {
    background: white;
}

.table-admin thead th {
    background: #f4f6f9;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding: 15px;
    font-size: 0.95rem;
}

.table-admin tbody tr {
    transition: all 0.3s ease;
}

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

.table-admin tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* Buttons */
.btn-admin-primary {
    background: linear-gradient(135deg, #3c8dbc, #5fa8d3);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-admin-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(60, 141, 188, 0.4);
    color: white;
}

.btn-admin-success {
    background: linear-gradient(135deg, #00a65a, #00c96b);
    border: none;
    color: white;
}

.btn-admin-warning {
    background: linear-gradient(135deg, #f39c12, #f5b041);
    border: none;
    color: white;
}

.btn-admin-danger {
    background: linear-gradient(135deg, #dd4b39, #e74c3c);
    border: none;
    color: white;
}

/* Forms */
.form-admin .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-admin .form-control {
    border-radius: 5px;
    border: 1px solid #d2d6de;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-admin .form-control:focus {
    border-color: #3c8dbc;
    box-shadow: 0 0 0 0.2rem rgba(60, 141, 188, 0.25);
}

/* Badges */
.badge-admin {
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Page Header */
.content-header {
    padding: 0 0 20px 0;
    margin-bottom: 20px;
}

.content-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 5px;
}

.action-buttons .btn {
    padding: 5px 12px;
    font-size: 0.875rem;
}

/* Alerts */
.alert-admin {
    border-radius: 5px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-admin i {
    margin-right: 10px;
}

/* Dropdown Menu */
.dropdown-menu-admin {
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: none;
}

/* Pagination */
.pagination-admin .page-link {
    color: #3c8dbc;
    border: 1px solid #dee2e6;
    margin: 0 2px;
    border-radius: 5px;
}

.pagination-admin .page-link:hover {
    background: #3c8dbc;
    color: white;
}

.pagination-admin .page-item.active .page-link {
    background: #3c8dbc;
    border-color: #3c8dbc;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-250px);
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
    }
}

/* Toggle Button */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: #3c8dbc;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }
}

/* Dashboard Specific */
.small-box {
    border-radius: 10px;
    position: relative;
    display: block;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    color: white;
    padding: 20px;
    overflow: hidden;
}

.small-box-icon {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 5rem;
    opacity: 0.3;
}

.small-box h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.small-box p {
    font-size: 1rem;
    margin: 0;
}

.small-box-footer {
    display: block;
    padding: 10px 0 0 0;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-top: 1px solid rgba(255,255,255,0.3);
    margin-top: 15px;
}

.small-box-footer:hover {
    color: white;
}

.bg-aqua {
    background: linear-gradient(135deg, #00c0ef, #3dd5f3) !important;
}

.bg-green {
    background: linear-gradient(135deg, #00a65a, #00c96b) !important;
}

.bg-yellow {
    background: linear-gradient(135deg, #f39c12, #f5b041) !important;
}

.bg-red {
    background: linear-gradient(135deg, #dd4b39, #e74c3c) !important;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 400px;
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.login-card-header {
    background: linear-gradient(135deg, #3c8dbc, #5fa8d3);
    color: white;
    padding: 30px;
    text-align: center;
}

.login-card-header h3 {
    margin: 0;
    font-weight: 700;
}

.login-card-body {
    padding: 40px 30px;
}

.login-card-body .form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
}

.login-card-body .form-control:focus {
    border-color: #3c8dbc;
    box-shadow: 0 0 0 0.2rem rgba(60, 141, 188, 0.25);
}

/* Data Tables Enhancement */
.dataTables_wrapper {
    padding: 20px 0;
}

.dataTables_filter input {
    border-radius: 5px;
    border: 1px solid #d2d6de;
    padding: 5px 10px;
}

/* Status Badges */
.status-active {
    background: #00a65a;
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
}

.status-inactive {
    background: #dd4b39;
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
}

/* Box Header with Tools */
.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f4f6f9;
}

.box-tools {
    display: flex;
    gap: 10px;
}
