/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

/* Authentication Pages */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #CC6600 0%, #ff8c1a 100%);
}

.auth-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-form h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #CC6600;
    box-shadow: 0 0 0 2px rgba(204, 102, 0, 0.2);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #CC6600;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: #b35900;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(204, 102, 0, 0.3);
}

.btn-primary {
    background-color: #CC6600;
    width: 100%;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-outline {
    background-color: transparent;
    color: #CC6600;
    border: 2px solid #CC6600;
}

.btn-outline:hover {
    background-color: #CC6600;
    color: white;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links a {
    color: #CC6600;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
    color: #b35900;
}

/* Dashboard Layout */
.dashboard-page {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Bootstrap Table Override */
.table {
    margin-bottom: 0;
    width: 100% !important;
}

.table thead th {
    border-bottom: 2px solid #CC6600;
    font-weight: 600;
}

.table-dark th {
    background-color: #CC6600;
    border-color: #CC6600;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(204, 102, 0, 0.05);
}

.table-hover > tbody > tr:hover > td {
    background-color: rgba(204, 102, 0, 0.1);
}

/* Bootstrap Badge Customization */
.badge.bg-primary {
    background-color: #CC6600 !important;
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.dashboard-header {
    background: linear-gradient(135deg, #CC6600 0%, #ff8c1a 100%);
    box-shadow: 0 2px 8px rgba(204, 102, 0, 0.3);
    padding: 0;
    margin: 0;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    margin: 0;
    width: 100%;
}

.header-left {
    flex: 1;
    display: flex;
    align-items: center;
}

/* Employee Search - Select2 Customization */
.employee-search-container {
    position: relative;
    width: 100%;
    max-width: 450px;
}

/* Select2 Container Styling */
.employee-search-container .select2-container {
    width: 100% !important;
}

.employee-search-container .select2-selection {
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    height: 42px !important;
    padding: 0.25rem 1rem !important;
    transition: all 0.3s ease !important;
}

.employee-search-container .select2-selection:focus,
.employee-search-container .select2-container--open .select2-selection {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.employee-search-container .select2-selection__rendered {
    color: #fff !important;
    padding-left: 2rem !important;
    line-height: 38px !important;
}

.employee-search-container .select2-selection__placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.employee-search-container .select2-selection__arrow {
    display: none !important;
}

/* Add search icon */
.employee-search-container::before {
    content: "\f52a";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    pointer-events: none;
    z-index: 10;
}

/* Dropdown Styling */
.select2-container--default .select2-results__option {
    padding: 0.875rem 1rem !important;
    transition: background-color 0.2s ease;
}

.select2-container--default .select2-results__option--highlighted {
    background-color: rgba(204, 102, 0, 0.05) !important;
    color: #333 !important;
}

.select2-dropdown {
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    margin-top: 8px !important;
}

.select2-search--dropdown {
    padding: 0.75rem !important;
    background: #f8f9fa !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.select2-search--dropdown .select2-search__field {
    border: 2px solid #e0e0e0 !important;
    border-radius: 6px !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem !important;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #CC6600 !important;
    outline: none !important;
}

/* Custom Employee Result Item */
.employee-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.employee-result-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #CC6600 0%, #ff8c1a 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.employee-result-info {
    flex: 1;
    min-width: 0;
}

.employee-result-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.employee-result-email {
    color: #666;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.employee-result-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.badge-admin {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.badge-employee {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.badge-pending {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
}

.select2-results__message {
    padding: 2rem 1rem !important;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

/* Loading Spinner */
.select2-results__option.loading-results {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

.select2-results__option.loading-results::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #CC6600;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.username {
    font-weight: 500;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.dashboard-container {
    display: flex;
    margin: 0;
    padding: 0;
    gap: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.sidebar {
    flex: 0 0 260px;
    width: 260px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    border-radius: 0;
    padding: 0;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    height: 100vh;
    margin: 0;
    overflow-x: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    flex: 0 0 70px;
    width: 70px;
}

/* Sidebar Brand */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 3rem 1.5rem 1.25rem;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 70px;
    position: relative;
}

.sidebar-brand .brand-icon {
    font-size: 1.75rem;
    color: #CC6600;
    flex-shrink: 0;
}

.sidebar-brand .brand-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.sidebar.collapsed .sidebar-brand {
    justify-content: center;
    padding: 1.5rem 3rem 1.5rem 0.5rem;
}

.sidebar.collapsed .sidebar-brand .brand-text {
    display: none;
}

/* Sidebar Resizer */
.sidebar-resizer {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.sidebar-resizer:hover {
    background: rgba(204, 102, 0, 0.3);
    border-color: rgba(204, 102, 0, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.sidebar-resizer i {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.sidebar-resizer:hover i {
    color: #ffffff;
}

.sidebar.collapsed .sidebar-resizer i {
    transform: rotate(180deg);
}

.sidebar.collapsed .sidebar-resizer:hover i {
    transform: rotate(180deg);
}

.sidebar.collapsed .nav-menu a {
    padding: 0.875rem 0.5rem;
    justify-content: center;
    gap: 0;
}

.sidebar.collapsed .nav-menu a .menu-text,
.sidebar.collapsed .nav-menu a .submenu-arrow {
    display: none;
}

.sidebar.collapsed .nav-menu a .menu-icon {
    font-size: 1.4rem;
    margin: 0;
}

.sidebar.collapsed .has-submenu .submenu {
    display: none !important;
}

.nav-menu {
    list-style: none;
    padding: 1rem 0;
    flex: 1;
    overflow-y: auto;
}

.nav-menu::-webkit-scrollbar {
    width: 6px;
}

.nav-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.nav-menu::-webkit-scrollbar-thumb {
    background: rgba(204, 102, 0, 0.3);
    border-radius: 3px;
}

.nav-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(204, 102, 0, 0.5);
}

.nav-menu li {
    margin-bottom: 0.25rem;
    padding: 0 0.75rem;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-menu a .menu-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    color: #bdc3c7;
    transition: all 0.3s ease;
}

.nav-menu a .menu-text {
    flex: 1;
    white-space: nowrap;
}

.nav-menu a .submenu-arrow {
    font-size: 0.75rem;
    margin-left: auto;
    transition: transform 0.3s ease;
    color: #bdc3c7;
}

.nav-menu a:hover {
    background: linear-gradient(90deg, rgba(204, 102, 0, 0.15) 0%, rgba(204, 102, 0, 0.08) 100%);
    color: #ffffff;
    border-left-color: #CC6600;
    transform: translateX(2px);
}

.nav-menu a:hover .menu-icon {
    color: #CC6600;
    transform: scale(1.1);
}

.nav-menu a.active {
    background: linear-gradient(90deg, rgba(204, 102, 0, 0.25) 0%, rgba(204, 102, 0, 0.15) 100%);
    color: #ffffff;
    border-left-color: #CC6600;
    box-shadow: 0 2px 8px rgba(204, 102, 0, 0.2);
}

.nav-menu a.active .menu-icon {
    color: #CC6600;
}

.has-submenu .submenu {
    display: none;
    background-color: rgba(0, 0, 0, 0.15);
    margin: 0.5rem 0 0.5rem 1rem;
    padding: 0.5rem 0;
    border-radius: 6px;
    border-left: 2px solid rgba(204, 102, 0, 0.3);
}

.has-submenu .submenu li {
    margin-bottom: 0;
    padding: 0 0.5rem;
}

.has-submenu .submenu a {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: #bdc3c7;
    border-radius: 6px;
    border-left: 2px solid transparent;
}

.has-submenu .submenu a .menu-icon {
    font-size: 1.1rem;
    color: #95a5a6;
}

.has-submenu .submenu a:hover {
    background: linear-gradient(90deg, rgba(204, 102, 0, 0.12) 0%, rgba(204, 102, 0, 0.06) 100%);
    color: #ffffff;
    border-left-color: #CC6600;
}

.has-submenu .submenu a:hover .menu-icon {
    color: #CC6600;
}

.has-submenu .submenu a.active {
    background: linear-gradient(90deg, rgba(204, 102, 0, 0.2) 0%, rgba(204, 102, 0, 0.1) 100%);
    color: #ffffff;
    border-left-color: #CC6600;
}

.has-submenu .submenu a.active .menu-icon {
    color: #CC6600;
}

.has-submenu.open .submenu-arrow {
    transform: rotate(180deg);
}

.main-content {
    flex: 1;
    width: calc(100% - 260px);
    background: #f8f9fa;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin: 0;
    overflow-x: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content.expanded {
    width: calc(100% - 70px);
}

/* Dashboard Content */
.dashboard-content {
    width: 100%;
    margin: 0;
    padding: 1rem;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    margin-left: 0;
    margin-right: 0;
}

.breadcrumb h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 0;
}

.date-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.controls-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-icon {
    background-color: #CC6600;
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    user-select: none;
}

.calendar-icon:hover {
    background-color: #b35900;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(204, 102, 0, 0.3);
}

#date-picker {
    position: relative;
    z-index: 1001;
}

#date-picker[style*="display: block"] {
    min-width: 150px;
    border: 2px solid #CC6600 !important;
    border-radius: 6px !important;
    padding: 8px !important;
    font-size: 14px !important;
    box-shadow: 0 4px 12px rgba(204, 102, 0, 0.3) !important;
    background-color: white !important;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-selector label {
    font-weight: 500;
    color: #666;
}

.date-selector input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.period-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.period-selector label {
    font-weight: 500;
    color: #666;
}

.period-buttons {
    display: flex;
    gap: 0.25rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.period-btn {
    background-color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #666;
    border-right: 1px solid #ddd;
}

.period-btn:last-child {
    border-right: none;
}

.period-btn:hover {
    background-color: #f8f9fa;
    color: #333;
}

.period-btn.active {
    background-color: #CC6600;
    color: white;
}

/* Period Navigation */
.period-nav-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.period-navigation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn {
    background-color: #CC6600;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    user-select: none;
}

.nav-btn:hover {
    background-color: #b35900;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(204, 102, 0, 0.3);
}

.nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(102, 126, 234, 0.3);
}

.nav-btn:disabled {
    background-color: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.activity-list li:last-child {
    border-bottom: none;
}

/* Bootstrap Integration Styling */
.summary-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.summary-card h5 {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-card .stat-value {
    color: #CC6600;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.activity-breakdown, .time-breakdown {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.activity-breakdown h5, .time-breakdown h5 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid #CC6600;
    padding-bottom: 0.5rem;
}

.app-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.app-item:last-child {
    border-bottom: none;
}

.app-item .app-name {
    font-weight: 500;
    color: #333;
}

.time-item {
    padding: 0.5rem 0;
}

.time-item span:first-child {
    color: #666;
    font-weight: 500;
}

/* Activity Columns Styling */
.widget.full-width {
    grid-column: 1 / -1;
}

.activity-columns-container {
    margin-top: 1rem;
    width: 100%;
}

.activity-column {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 300px;
    border-right: 2px solid #e9ecef;
    margin-right: 0.5rem;
}

.activity-column:last-child {
    border-right: none;
    margin-right: 0;
}

.activity-item {
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0.25rem;
}

.activity-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.activity-item:hover {
    background-color: rgba(204, 102, 0, 0.05);
    border-radius: 4px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.activity-item.border-top {
    border-top: none;
}

.activity-item .app-name {
    font-weight: 500;
    color: #333;
    font-size: 0.85rem;
    flex: 1;
    margin-right: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-item .total-time {
    font-weight: 600;
    color: #CC6600;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}


.no-data {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.no-data p {
    margin: 0.5rem 0;
}

.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.widget {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    width: 100%;
    margin: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.widget h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.summary-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat {
    display: flex;
    justify-content: between;
    align-items: center;
}

.stat label {
    font-weight: 500;
    color: #666;
    flex: 1;
}

.stat span {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.timeline, .chart-placeholder {
    color: #666;
    font-style: italic;
}

/* Settings Forms */
.settings-form {
    max-width: 500px;
}

.settings-form .form-group {
    margin-bottom: 1.5rem;
}

.settings-form .btn {
    width: auto;
    padding: 0.75rem 2rem;
}

/* Reports */
.report-options, .export-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.report-options .btn, .export-options .btn {
    flex: 0 0 auto;
}

/* Integrations */
.integration-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.integration-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: white;
}

.integration-info h4 {
    margin-bottom: 0.25rem;
    color: #333;
}

.integration-info p {
    color: #666;
    font-size: 0.9rem;
}

/* API Management */
.api-section, .api-docs, .rate-limits {
    margin-bottom: 1rem;
}

.api-docs ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.api-docs code {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #e83e8c;
}

.usage-bar {
    background: #e9ecef;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
        padding: 0;
        width: 100vw;
    }

    .sidebar {
        flex: none;
        width: 100%;
        height: auto;
        max-height: none;
    }

    .sidebar-resizer {
        display: none;
    }

    .sidebar-brand {
        min-height: 60px;
        padding: 1rem 1.25rem;
    }

    .nav-menu {
        flex-direction: row;
        overflow-x: auto;
        padding: 0.5rem 0;
    }

    .nav-menu li {
        display: inline-block;
        padding: 0 0.5rem;
    }

    .nav-menu a {
        white-space: nowrap;
        padding: 0.75rem 1rem;
    }

    .has-submenu .submenu {
        position: absolute;
        background: #2c3e50;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        margin: 0.5rem 0 0 0;
        min-width: 200px;
        z-index: 1000;
    }

    .main-content {
        width: 100vw;
    }

    .main-content.expanded {
        width: 100vw;
    }
    
    .dashboard-content {
        padding: 0.5rem;
    }
    
    .header-content {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .date-controls {
        width: 100%;
        align-items: center;
    }
    
    .controls-container {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .period-buttons {
        display: flex;
        flex: 1;
        min-width: 200px;
    }
    
    .period-btn {
        flex: 1;
        text-align: center;
    }
    
    .nav-btn, .calendar-icon {
        min-width: 32px;
        flex-shrink: 0;
    }
    
    .dashboard-widgets {
        grid-template-columns: 1fr;
    }
    
    .report-options, .export-options {
        flex-direction: column;
    }
    
    .integration-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .activity-column {
        margin-bottom: 1rem;
        min-height: auto;
    }
    
    .activity-column {
        border-right: none;
        margin-right: 0;
        border-bottom: 2px solid #e9ecef;
        margin-bottom: 1rem;
    }
    
    .activity-column:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .activity-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.4rem 0;
    }
    
    .activity-item .app-name {
        margin-right: 0.5rem;
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
    }
    
    .activity-item .total-time {
        font-size: 0.8rem;
        flex-shrink: 0;
    }
}

@media (max-width: 991px) {
    .activity-columns-container .col-md-3 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .dashboard-container {
        padding: 0.5rem;
    }

    .main-content {
        padding: 1rem;
    }

    .activity-columns-container .row {
        margin: 0;
    }

    .activity-columns-container .col-md-3 {
        padding: 0 0.5rem;
    }
}

/* Timeline Bar Styles */
.timeline-container {
    padding: 1rem 0;
}

/* Activity Bar Graph (Vertical Bars) */
.activity-bar-graph {
    display: flex;
    align-items: flex-end;
    height: 120px;
    gap: 1px;
    padding: 0;
    background: #f8f9fa;
    border-bottom: 1px dashed #ccc;
}

.bar-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 1px;
    height: 100%;
}

.bar-column.empty {
    background: transparent;
}

.bar-active {
    background: linear-gradient(to top, #4CAF50, #8BC34A);
    min-height: 2px;
}

.bar-idle {
    background: linear-gradient(to top, #bdbdbd, #e0e0e0);
    min-height: 2px;
}

.bar-column:hover .bar-active {
    background: linear-gradient(to top, #43A047, #7CB342);
}

.bar-column:hover .bar-idle {
    background: linear-gradient(to top, #9e9e9e, #bdbdbd);
}

/* Horizontal Timeline Bar (Blue) */
.timeline-horizontal-bar {
    position: relative;
    height: 20px;
    background: #e8e8e8;
    margin-top: 2px;
}

.timeline-work-segment {
    position: absolute;
    top: 0;
    height: 100%;
    background: #03A9F4;
    cursor: pointer;
}

.timeline-work-segment:hover {
    background: #0288D1;
}

/* Tooltip for blue timeline segments */
.timeline-work-segment[data-tooltip] {
    position: absolute;
}

.timeline-work-segment[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    margin-bottom: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.timeline-work-segment[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    margin-bottom: -4px;
}

.timeline-work-segment[data-tooltip]:hover::after,
.timeline-work-segment[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Hour Labels */
.timeline-hour-labels {
    position: relative;
    height: 20px;
    margin-top: 5px;
}

.timeline-hour-labels span {
    position: absolute;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: #888;
}

/* Legend */
.timeline-legend {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #555;
}

.legend-color {
    width: 16px;
    height: 12px;
    border-radius: 2px;
}

.active-color {
    background: linear-gradient(to right, #4CAF50, #8BC34A);
}

.idle-color {
    background: linear-gradient(to right, #bdbdbd, #e0e0e0);
}

.online-color {
    background: #03A9F4;
}

/* Responsive timeline */
@media (max-width: 768px) {
    .activity-bar-graph {
        height: 80px;
    }

    .timeline-horizontal-bar {
        height: 15px;
    }

    .timeline-legend {
        gap: 0.75rem;
    }

    .legend-item {
        font-size: 0.7rem;
    }

    .timeline-hour-labels span {
        font-size: 0.55rem;
    }
}