body { font-family: sans-serif; margin: 0; display: flex; height: 100vh; background: #f4f6f8; }
/* Sidebar */
.sidebar { width: 250px; background: #2c3e50; color: white; display: flex; flex-direction: column; }
.sidebar h2 { text-align: center; padding: 20px 0; border-bottom: 1px solid #34495e; margin: 0; }
.sidebar a { padding: 15px 20px; color: #bdc3c7; text-decoration: none; display: block; }
.sidebar a:hover, .sidebar a.active { background: #34495e; color: white; }
.sidebar a i { margin-right: 10px; width: 20px; text-align: center; }

/* Content */
.content { flex: 1; padding: 30px; overflow-y: auto; }
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.card { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.card h3 { margin: 0; font-size: 14px; color: #7f8c8d; }
.card .number { font-size: 24px; font-weight: bold; color: #2c3e50; margin-top: 10px; display: block; }

/* Tables */
table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #ecf0f1; font-weight: 600; }
.status { padding: 5px 10px; border-radius: 4px; font-size: 12px; font-weight: bold; }
.status-pending { background: #f1c40f; color: #fff; }
.status-completed { background: #2ecc71; color: #fff; }
.status-cancelled { background: #e74c3c; color: #fff; }

/* Buttons */
.btn { padding: 8px 15px; border-radius: 4px; text-decoration: none; color: white; font-size: 12px; }
.btn-primary { background: #3498db; }


/* Fix Sidebar Height */
body {
    display: flex;
    min-height: 100vh; /* Force body to take full viewport height */
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f8;
}

.sidebar {
    width: 250px;
    background-color: #2c3e50; /* Your sidebar color */
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed; /* Makes sidebar stay in place while scrolling */
    top: 0;
    left: 0;
    height: 100%; /* Full height of the screen */
    overflow-y: auto; /* Scrollable if content is too long */
    z-index: 1000;
}

.content {
    margin-left: 250px; /* Push content to the right of sidebar */
    flex: 1;
    padding: 30px;
    width: calc(100% - 250px); /* Ensure content takes remaining width */
    box-sizing: border-box;
    min-height: 100vh; /* Ensure content area is at least full screen height */
}

/* Ensure links in sidebar look good */
.sidebar a {
    color: #b8c7ce;
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.sidebar a:hover, .sidebar a.active {
    background-color: #1a252f;
    color: white;
    border-left-color: #3498db; /* Highlight color */
}

.sidebar h2 {
    text-align: center;
    padding: 20px 0;
    background-color: #1a252f;
    margin: 0;
    font-size: 20px;
    border-bottom: 1px solid #34495e;
}