/* General Styles */
body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
}

/* Navbar */
.navbar {
    background-color: #1c2128 !important;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #30363d;
}

/* Main brand/logo styling */
.navbar-brand {
    color: #ffffff !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-brand:hover {
    text-decoration: none;
    color: #ffffff !important;
}

/* Logo styling */
.navbar-logo {
    height: 40px;
    width: auto;
    margin-right: 12px;
}

.navbar-brand-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

/* Navbar links styling */
.navbar .navbar-nav .nav-link {
    color: #8b949e !important;
    padding: 0.5rem 1rem;
}

/* Active/hover state for nav links */
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus,
.navbar .navbar-nav .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown menu styling - navbar specific */
.navbar .dropdown-menu {
    background-color: #2d333b;
    border: 1px solid #444c56;
}

.navbar .dropdown-item {
    color: #8b949e;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    color: #ffffff;
    background-color: #444c56;
}

/* Dropdown divider - navbar specific */
.navbar .dropdown-divider {
    border-top: 1px solid #444c56;
}

/* Icons styling - navbar specific */
.navbar .nav-link i {
    margin-right: 0.5rem;
    color: #8b949e;
}

.navbar .nav-link:hover i,
.navbar .nav-link.active i {
    color: #ffffff;
}

/* Navbar toggler for mobile */
.navbar-toggler {
    border-color: #444c56;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(139, 148, 158, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Organization section background */
.organization-section {
    background-color: #22272e;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 250px; /* Fixed width */
    padding-top: 56px; /* Height of navbar */
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    z-index: 100;
    background-color: #f8f9fc;
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 56px);
    padding-top: 0.5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Main Content */
.main-content {
    margin-left: 250px; /* Same as sidebar width */
    padding: 1.5rem;
    margin-top: 56px; /* Height of navbar */
}

/* For mobile devices */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: static;
        padding-top: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    /* Mobile navbar logo adjustments */
    .navbar-logo {
        height: 32px;
        margin-right: 8px;
    }
    
    .navbar-brand-text {
        font-size: 1rem;
    }
    
    .navbar-brand {
        flex-wrap: wrap;
    }
}

/* For very small devices */
@media (max-width: 576px) {
    .navbar-logo {
        height: 28px;
        margin-right: 6px;
    }
    
    .navbar-brand-text {
        font-size: 0.9rem;
        line-height: 1.2;
    }
}

/* Dashboard Cards */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-title {
    color: #666;
    font-size: 1rem;
    margin-bottom: 15px;
}

.card-text {
    color: #333;
    font-weight: bold;
}

.status-box {
    padding: 15px;
    border-radius: 6px;
    background-color: #f8f9fa;
    margin-bottom: 15px;
}

.status-box h6 {
    color: #666;
    margin-bottom: 5px;
    text-transform: capitalize;
}

.status-box h3 {
    color: #333;
    margin: 0;
}

.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-time {
    color: #999;
    font-size: 0.9rem;
    margin-right: 10px;
}

.activity-user {
    color: #666;
    font-weight: 500;
    margin-right: 10px;
}

.activity-action {
    color: #333;
    font-weight: 500;
    margin-right: 10px;
}

.activity-details {
    color: #666;
}

.border-left-primary {
    border-left: .25rem solid #4e73df !important;
}

.border-left-success {
    border-left: .25rem solid #1cc88a !important;
}

.border-left-info {
    border-left: .25rem solid #36b9cc !important;
}

.border-left-warning {
    border-left: .25rem solid #f6c23e !important;
}

/* Text Colors */
.text-primary {
    color: #4e73df !important;
}

.text-success {
    color: #1cc88a !important;
}

.text-info {
    color: #36b9cc !important;
}

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

/* Card Shadows */
.shadow {
    box-shadow: 0 .15rem 1.75rem 0 rgba(58,59,69,.15) !important;
}

/* Navigation Links */
.nav-link {
    color: #3a3b45;
    padding: .75rem 1rem;
    font-weight: 500;
}

.nav-link:hover {
    color: #4e73df;
    background-color: #eaecf4;
}

.nav-link.active {
    color: #4e73df;
    font-weight: 700;
}

.nav-link i {
    margin-right: 0.5rem;
    color: #8b949e;
}

.nav-link:hover i,
.nav-link.active i {
    color: #ffffff;
}

/* Tables */
.table-responsive {
    margin-bottom: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

/* Alerts */
.alert {
    margin-bottom: 1rem;
}

/* Buttons */
.btn-link {
    padding: 0;
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Container styling */
.container-fluid {
    padding: 1rem;
}

/* Page header styling */
h1, h2, h3, h4, h5, h6 {
    color: #333333;
}

/* Table styling */
.table {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    margin-top: 1rem;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    border: 1px solid #dee2e6;
}

/* Status badges */
.badge.active {
    background-color: #28a745;
    color: white;
}

.badge.inactive {
    background-color: #dc3545;
    color: white;
}

/* Action buttons */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

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

/* Search and filter controls */
.form-control {
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.form-select {
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* Status labels */
.status-active {
    background-color: #28a745;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.status-inactive {
    background-color: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Action icons */
.action-icon {
    color: #0d6efd;
    cursor: pointer;
}

.action-icon:hover {
    color: #0a58ca;
}

/* Add Asset button */
.btn-add {
    background-color: #0d6efd;
    color: white;
    border-radius: 4px;
    padding: 0.5rem 1rem;
}

.btn-add:hover {
    background-color: #0a58ca;
}

/* Status badge styling */
.badge {
    padding: 8px 12px;
    font-size: 0.875rem;
}

.bg-success {
    background-color: #28a745 !important;
}

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

/* Add Maintenance status color */
.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;  /* Make text black for better visibility */
}

/* Status-specific colors for table cells */
.status-active {
    color: #28a745;
}

.status-inactive {
    color: #dc3545;
}

.status-maintenance {
    color: #ffc107;
}

/* Table styling */
.table td {
    vertical-align: middle;
}

.table td .badge {
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

/* Remove button group styling since we're using individual buttons */
.table td .btn-group {
    display: inline-block;
}

/* Hover effects */
.btn:hover {
    opacity: 0.85;
}

/* Dashboard Styles */
.stats-card {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.stats-card h3 {
    margin: 10px 0;
    font-size: 1.2rem;
    color: #333;
}

.stats-card p {
    margin: 5px 0;
    color: #666;
}

.view-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
}

.view-link:hover {
    text-decoration: underline;
}

.activity-section {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.activity-section h3 {
    margin-bottom: 20px;
    color: #333;
}

.table th {
    border-top: none;
    color: #666;
    font-weight: 500;
}

.table td {
    vertical-align: middle;
    color: #333;
}

/* Update the Assets Management header and button container */
.assets-header {
    display: flex;
    align-items: center;
    justify-content: space-between;  /* This will push items to opposite ends */
    margin-bottom: 20px;
}

.assets-header h1 {
    margin: 0;
}

/* Style for the Add Asset button */
.add-asset-btn {
    margin-left: 15px;  /* Changed from margin-right to margin-left */
}

/* Container for search and filters */
.assets-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

/* Make search and dropdown filters consistent width */
.assets-filters input,
.assets-filters select {
    min-width: 200px;
}

/* Asset Types specific styling */
.table td .btn-group {
    display: flex;
    gap: 5px;
}

.table td .btn-group .btn {
    display: flex;
    align-items: center;
    gap: 5px;
}

.table td .badge {
    padding: 8px 12px;
    font-size: 0.9em;
}

/* Modal styling */
.modal-body .form-label {
    font-weight: 500;
}

.modal-body .form-control {
    padding: 0.5rem 0.75rem;
}

/* Responsive table adjustments */
@media (max-width: 768px) {
    .table td .btn-group {
        flex-direction: column;
    }
    
    .table td .btn-group .btn {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Auth Pages Styling */
.auth-page {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.auth-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    flex: 1;
}

/* Auth page cards */
.auth-content .card {
    width: 100%;
    max-width: 450px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.auth-content .card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 1.5rem;
}

.auth-content .card-body {
    padding: 2rem;
}

.auth-content .card-footer {
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.125);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding: 1rem;
}

.auth-content .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.auth-content .form-label {
    font-weight: 500;
} 