/* Main Styling for Inventarisasi Aset */

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

body {
    background-color: #f8f9fc;
    overflow-x: hidden;
}

/* Sidebar Styling */
.wrapper {
    display: flex;
    width: 100%;
}

.sidebar {
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 999;
    background: var(--secondary-color);
    color: #fff;
    transition: all 0.3s;
}

.sidebar .sidebar-header {
    padding: 20px;
    background: var(--primary-color);
}

.sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #47748b;
}

.sidebar ul p {
    color: #fff;
    padding: 10px;
}

.sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
    color: #fff;
    text-decoration: none;
}

.sidebar ul li a:hover {
    color: var(--primary-color);
    background: #fff;
}

.sidebar ul li.active > a {
    color: #fff;
    background: var(--primary-color);
}

.sidebar ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: var(--secondary-color);
}

/* Content Styling */
#content-wrapper {
    width: calc(100% - 250px);
    min-height: 100vh;
    transition: all 0.3s;
    position: absolute;
    top: 0;
    right: 0;
}

/* Card Styling */
.card {
    border: none;
    border-radius: 5px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

/* Button Styling */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Table Styling */
.table-responsive {
    overflow-x: auto;
}

/* Footer Styling */
.sticky-footer {
    padding: 2rem 0;
    flex-shrink: 0;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    text-align: center;
    color: #fff;
    background: rgba(90, 92, 105, 0.5);
    line-height: 46px;
    border-radius: 0.35rem;
}

.scroll-to-top:hover {
    background: var(--secondary-color);
}

/* QR Code Styling */
.qrcode-container {
    text-align: center;
    margin: 20px 0;
}

.qrcode-container img {
    max-width: 200px;
    border: 1px solid #ddd;
    padding: 10px;
    background: white;
}

/* Profile Image */
.img-profile {
    height: 2rem;
    width: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }
    .sidebar.active {
        margin-left: 0;
    }
    #content-wrapper {
        width: 100%;
    }
    #content-wrapper.active {
        width: calc(100% - 250px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .content {
        margin-left: 0;
        width: 100%;
    }
    
    .navbar-nav {
        flex-direction: row;
    }
    
    .table-responsive {
        overflow-x: auto;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .form-group {
        margin-bottom: 0.5rem;
    }
}

/* Modern Theme Styles */
.theme-modern {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
    --shadow: 0 .15rem 1.75rem 0 rgba(58, 59, 69, .15);
}

.theme-modern .card {
    border: none;
    border-radius: 0.35rem;
    box-shadow: var(--shadow);
}

.theme-modern .btn {
    border-radius: 0.35rem;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
}

.theme-modern .form-control {
    border-radius: 0.35rem;
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
}

.theme-modern .navbar {
    box-shadow: var(--shadow);
}

.theme-modern .sidebar {
    background: linear-gradient(180deg, var(--primary-color) 10%, var(--info-color) 100%);
}