* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; background: #f3f3f3; display: flex; }

/* Sidebar */
.sidebar {
    width: 250px;
    background: #005e7a;
    color: #fff;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
    padding-top: 20px;
    z-index: 1001;
    overflow-y: auto;
}
.sidebar.close { transform: translateX(-100%); }

.sidebar .logo { text-align: center; margin-bottom: 10px; }
.sidebar .logo img { width: 220px; }

.sidebar ul { list-style: none; padding: 0; }
.sidebar ul li a {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    display: block;
    color: #fff;
    text-decoration: none;
}
.sidebar ul li a:hover { background: #004a63; }

.sidebar ul li a.active {
    background: #004a63;
    font-weight: bold;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #004a63;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #00a1c9;
    border-radius: 3px;
}


/* Navbar */
.navbar {
    height: 60px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1000;
}
.navbar .menu-btn {
    font-size: 20px;
    color: #005e7a;
    cursor: pointer;
    display: none;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    padding: 80px 20px 20px;
    width: 100%;
    transition: margin-left 0.3s ease;
}

/* Overlay for mobile */
.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1000;
}
.overlay.show { display: block; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .navbar { left: 0; }
    .navbar .menu-btn { display: block; }
    .main-content { margin-left: 0; }
}



/* Toast css */
.toast-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-30px);
    background: #dc3545; /* red for error */
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0px 3px 10px rgba(0,0,0,0.2);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 9999;
}
.toast-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast-message.success { background: #28a745; }
.toast-message.error { background: #dc3545; }
.toast-message i {
    font-size: 16px;
}

.main-content h1 {
    margin-bottom: 20px;
    color: #005e7a;
}

.form-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border 0.3s ease;
    resize: vertical;
    margin-bottom: 5px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #005e7a;
    outline: none;
}

.btn-submit {
    background: #005e7a;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #004a63;
}


/* Table css */
.table-container {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    margin: 20px;
    overflow-x: auto;
}

.table-container h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 15px;
}

.custom-table th, 
.custom-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.custom-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #444;
}

.custom-table tr:hover {
    background: #fafafa;
}

.btn {
    padding: 6px 12px;
    margin: 2px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn.edit {
    background: #4CAF50;
    color: #fff;
}

.btn.edit:hover {
    background: #43a047;
}

.btn.delete {
    background: #f44336;
    color: #fff;
}

.btn.delete:hover {
    background: #d32f2f;
}
.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0; top: 0; 
    width: 100%; height: 100%; 
    background: rgba(0,0,0,0.5); 
    justify-content: center; 
    align-items: center;
}
.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.btn.cancel {
    background: #9e9e9e;
    color: #fff;
}
.btn.cancel:hover {
    background: #757575;
}
.btn.add-roadmap {
    background: #4CAF50; /* Green primary */
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.btn.add-roadmap:hover {
    background: #43a047;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}

.remove-btn {
    margin-left: 5px;
    background: #ff4d4f;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}
.add-btn {
    margin-top: 8px;
    background: #52c41a;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}
.card-item, .medicine-item {
    margin-bottom: 5px;
}