/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f5f6fa;
}

/* Layout */
.main-container {
    display: flex;
    margin-top: 60px;
    height: calc(100vh - 60px);
}

/* Header Styles */
.header {
    background: #0B022D;
    color: white;
    padding: 1rem;
    height: 60px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.header h2 {
    margin-left: 20px;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background: white;
    color: white;
    padding: 20px 0;
    height: 100%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .menu-text {
    display: none;
}

.sidebar.collapsed .toggle-btn span {
    transform: rotate(90deg);
}

.toggle-btn {
    top: 10px;
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
    background: none;
}

.toggle-btn:hover {
    color: #a0967a;
}

.toggle-btn span {
    transition: transform 0.3s;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.sidebar li:hover {
    background: #10292eb0;
}

.sidebar li.active {
    background: #1d4c55b0;
    border-left: 4px solid #146B8C;
}

.sidebar a {
    color: #0f1a1b;
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 20px;
    background: #d7d7d7;
    transition: margin-left 0.3s ease;
}

.content-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Menu Icons */
.menu-icon {
    margin-right: 10px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
}

.menu-icon img {
    size: 100px;
    width: 100px;
}

.menu-text {
    white-space: nowrap;
}

/* Common Elements */
.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: bold;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Stats Cards */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}
