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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f7faff;
}

.app {
    display: flex;
    min-height: 100vh;
    margin-left: 250px;
}

/* Sidebar styles */
.sidebar {
    width: 250px;
    background-color: #ffffff;
    box-shadow: 0 0 30px rgba(29, 143, 214, 0.07);
    padding: 30px 0;
    position: fixed;
    left: 0;
    z-index: 100;
    height: 100%;
    transition: all 0.3s ease;
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    justify-content: center;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    filter: drop-shadow(0 4px 6px rgba(29, 143, 214, 0.2));
}

/* Logo placeholder */
.logo-placeholder {
    width: 40px;
    height: 40px;
    background-color: #FF7F50;
    color: white;
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 12px;
    box-shadow: 0 4px 10px rgba(255, 127, 80, 0.3);
}

.sidebar-title {
    font-size: 43px;
    font-weight: 1000;
    color: #FF7F50;
    letter-spacing: -0.5px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    margin: 2px 0;
}

.menu-item.active {
    background-color: #1D8FD6;
    color: #fff;
    box-shadow: 0 8px 16px rgba(29, 143, 214, 0.25);
}

.menu-item:hover:not(.active) {
    background-color: rgba(29, 143, 214, 0.08);
    transform: translateX(5px);
}

.menu-item .material-icons-round {
    margin-right: 14px;
    font-size: 20px;
}

.menu-text {
    font-size: 15px;
    font-weight: 500;
}

/* Main content styles */
.main-content {
    flex-grow: 1;
    /* margin-left: 250px; */
    /* width: 100%; */
    padding: 30px;
    background-color: #f7faff;
    transition: all 0.3s ease;
}

/* Top navigation profile styles */
.top-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 30px;
    background-color: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(29, 143, 214, 0.08);
}

.profile-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.profile-container:hover {
    background-color: rgba(29, 143, 214, 0.08);
}

.profile-icon {
    margin-right: 10px;
}

.profile-icon img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1D8FD6;
}

.profile-icon .material-icons-round {
    font-size: 36px;
    color: #1D8FD6;
}

.profile-name {
    font-weight: 500;
    color: #333;
    margin-right: 5px;
}

.dropdown-icon {
    color: #757575;
    transition: transform 0.3s ease;
}

.profile-container:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown menu */
.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    margin-top: 10px;
    overflow: hidden;
}

.profile-container:hover .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    transition: background-color 0.3s ease;
}

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

.dropdown-item a {
    display: flex;
    align-items: center;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.dropdown-item a .material-icons-round {
    margin-right: 10px;
    color: #1D8FD6;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.dropdown-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 5px 0;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: #f5f9ff;
    border-radius: 12px;
    padding: 10px 16px;
    width: 300px;
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    box-shadow: 0 0 0 2px rgba(29, 143, 214, 0.2);
}

.search-input {
    border: none;
    background: transparent;
    margin-left: 10px;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: #333;
}

.search-icon {
    color: #1D8FD6;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-icon {
    color: #555;
    cursor: pointer;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav-icon:hover {
    background-color: rgba(29, 143, 214, 0.08);
    color: #1D8FD6;
}

.notification-icon {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #ff5757;
    color: white;
    font-size: 10px;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dashboard content */
.dashboard {
    padding: 0;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #222;
    letter-spacing: -0.5px;
}

/* Stats cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    grid-gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(29, 143, 214, 0.08);
    padding: 24px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(29, 143, 214, 0.15);
}

.stat-icon {
    background-color: #1D8FD6;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 18px;
    box-shadow: 0 8px 16px rgba(29, 143, 214, 0.25);
}

.stat-icon .material-icons-round {
    font-size: 28px;
}

.stat-content {
    flex-grow: 1;
}

.stat-title {
    color: #757575;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 26px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

.stat-trend {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
}

.stat-trend.positive {
    color: #00c853;
}

.stat-trend.negative {
    color: #ff5757;
}

.stat-trend .material-icons-round {
    font-size: 16px;
    margin-right: 4px;
}

/* Chart containers */
.chart-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    grid-gap: 24px;
    margin-bottom: 30px;
}

.chart-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(29, 143, 214, 0.08);
    padding: 24px;
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 8px 25px rgba(29, 143, 214, 0.15);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.chart-title {
    font-weight: 600;
    color: #222;
    font-size: 18px;
}

.chart-actions {
    color: #757575;
    cursor: pointer;
}

.chart {
    height: 300px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.chart-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Tasks card */
.tasks-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(29, 143, 214, 0.08);
    padding: 24px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.tasks-card:hover {
    box-shadow: 0 8px 25px rgba(29, 143, 214, 0.15);
}

.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.tasks-title {
    font-weight: 600;
    color: #222;
    font-size: 18px;
}

.tasks-actions {
    background-color: #1D8FD6;
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(29, 143, 214, 0.25);
    transition: all 0.3s ease;
}

.tasks-actions:hover {
    transform: scale(1.05);
}

.task-list {
    display: flex;
    flex-direction: column;
}

.task-item {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

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

.task-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #1D8FD6;
    border-radius: 6px;
    margin-right: 15px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.task-checkbox:checked {
    background-color: #1D8FD6;
}

.task-checkbox:checked::before {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.task-checkbox:checked + label {
    text-decoration: line-through;
    color: #9e9e9e;
}

.task-item label {
    flex-grow: 1;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.task-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.task-badge.high {
    background-color: rgba(255, 87, 87, 0.1);
    color: #ff5757;
}

.task-badge.medium {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.task-badge.low {
    background-color: rgba(0, 200, 83, 0.1);
    color: #00c853;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    color: #757575;
    font-size: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.user-guide-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
}

.guide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: all;
    transition: all 0.3s ease;
}

/* Spotlight effect - creates a clear area around the highlighted element */
.guide-spotlight {
    position: absolute;
    background: transparent;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 9998;
}

.guide-content {
    position: absolute;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 370px;
    min-width: 353px;
    pointer-events: all;
    z-index: 10001;
}

.guide-header {
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.guide-header h3 {
    margin: 0;
    color: #1D8FD6;
    font-size: 1.2rem;
    font-weight: 600;
}

.guide-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-close:hover {
    color: #666;
}

.guide-body {
    padding: 10px 20px 20px;
}

.guide-body p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

.guide-footer {
    padding: 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guide-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.guide-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.guide-btn-primary {
    background: #1D8FD6;
    color: white;
}

.guide-btn-primary:hover {
    background: #166ba8;
}

.guide-btn-outline {
    background: transparent;
    color: #1D8FD6;
    border: 1px solid #1D8FD6;
}

.guide-btn-outline:hover {
    background: #1D8FD6;
    color: white;
}

.guide-btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
}

.guide-btn-secondary:hover {
    background: #e9ecef;
}

.guide-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.guide-progress {
    color: #999;
    font-size: 14px;
}

.guide-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    pointer-events: none;
    z-index: 10002;
}

.guide-highlight {
    position: relative;
    z-index: 9999 !important;
    background: rgba(29, 143, 214, 0.08) !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(29, 143, 214, 0.3) !important;
}

/* Ensure highlighted elements are fully visible */
.guide-highlight * {
    position: relative;
    z-index: 9999;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .app {
        margin-left: 80px;
    }

    .sidebar {
        width: 80px;
        padding: 20px 0;
    }

    .sidebar-header {
        justify-content: center;
        padding: 0 10px 20px;
    }

    .sidebar-title {
        display: none;
    }

    .logo {
        margin-right: 0;
    }

    .menu-text {
        display: none;
    }

    .menu-item {
        justify-content: center;
    }

    .menu-item .material-icons-round {
        margin-right: 0;
    }

    /* .main-content {
        margin-left: 80px;
    } */
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
    }

    .chart-container {
        grid-template-columns: 1fr;
    }

    /* .main-content {
        padding: 20px;
    } */

    .search-bar {
        width: 200px;
    }
}

@media (max-width: 576px) {
    .top-nav {
        flex-direction: column;
        gap: 15px;
    }

    .search-bar {
        width: 100%;
    }

    .nav-icons {
        width: 100%;
        justify-content: space-around;
    }
}
