:root {
    --primary: #3B82F6;
    --primary-light: #93C5FD;
    --secondary: #1E293B;
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --border: #E2E8F0;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --primary: #3B82F6;
    --primary-light: #1D4ED8;
    --secondary: #94A3B8;
    --background: #0F172A;
    --surface: #1E293B;
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --border: #334155;
    --shadow: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
.my-2{
    margin-top: 15px;
    margin-bottom: 15px;
}
body {
    background-color: var(--background);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--surface);
    padding: 1.5rem;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.nav-links li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-links li a:hover,
.nav-links li.active a {
    background-color: var(--primary-light);
    color: white;
}

.nav-links li.active a {
    background-color: var(--primary);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--text-secondary);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Main Content */
.content {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
}

.search-bar input {
    border: none;
    outline: none;
    background-color: transparent;
    padding: 0.5rem;
    width: 100%;
    color: var(--text-primary);
}

.search-bar i {
    color: var(--text-secondary);
}

.forms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.form-card {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 4px 16px var(--shadow);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.2s;
}

.form-card:hover {
  box-shadow: 0 8px 32px var(--shadow);
}

.form-card-header {
  margin-bottom: 1rem;
}

.form-card-actions {
  padding: 5px auto;
  display: flex;
  gap: 1rem;
  line-height: 1;
  margin: 5px;
  /* margin-top: 1rem; */
}

.stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--background);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px var(--shadow);
}

.stat-card h4 {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table-container th, .table-container td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table-container th {
  background: var(--background);
  color: var(--text-secondary);
  font-weight: 500;
}

.table-container tr:hover {
  background: var(--primary-light);
  color: #fff;
}

.card {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 4px 16px var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Buttons */
.btn, .btn-primary, .btn-success, .btn-outline {
  border-radius: 6px;
  font-weight: 600;
  box-shadow: none;
  transition: background 0.2s, color 0.2s;
  display: flex;
  justify-content: center;
  justify-items: center;
  line-height: 22px;
  text-decoration: none;

}
.btn i{
  margin-right: 8px;
  margin-left: 8px;
}
.btn i{
  line-height: normal!important;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: #1e40af;
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-success:hover {
  background: #059669;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: #fff;
}







ul {
  list-style-type: none;
  padding: 0;
  /* max-width: 300px; */
}

.draggable-item {
  background-color: var(--surface);;
  display: flex;
  justify-content: space-between;
  justify-items: center;
  margin: 8px 0;
  padding: 0;
  border: 1px solid var(--border);
  /* border: 1px solid #ccc; */
  border-radius: 5px;
  cursor: move;
  transition: background-color 0.2s;
}

.draggable-content {
  padding: 12px;
}

.draggable-item.dragging {
  border: 1px dashed #ccc;
  opacity: 0.8;
  /* background-color: #d1e7fd; */
}















/* Responsive */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 1rem;
    }

    .nav-links {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .nav-links li a {
        white-space: nowrap;
    }

    .theme-toggle {
        display: none;
    }

    .forms-grid {
        grid-template-columns: 1fr;
    }
}



