/* Reset */
* {
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #0f172a;
}

/* Layout */
.admin-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    background-color: #1e293b;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.sidebar-header {
    text-align: center;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
    padding-bottom: 1rem;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin: 0.5rem 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    color: #cbd5e1;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.sidebar-nav a i {
    margin-right: 1rem;
}

.sidebar-nav li.active a,
.sidebar-nav a:hover {
    background-color: #334155;
    color: #ffffff;
    border-left: 3px solid #8b5cf6;
}

.sidebar-footer {
    padding: 1rem;
    margin-top: auto;
}

.sidebar-ul {
    padding-left: 0 !important;
}

.logout-btn {
    background-color: #8b5cf6;
    color: white;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.logout-btn i {
    margin-right: 0.5rem;
}

.logout-btn:hover {
    background-color: #7c3aed;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    overflow-y: auto;
}

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

.header-left h1 {
    font-size: 2rem;
    color: white;
}

.header-left p {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.search-box {
    background-color: #1e293b;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    color: #cbd5e1;
    margin-right: 1rem;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #f1f5f9;
    margin-left: 0.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e2e8f0;
    font-weight: 500;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: #1e293b;
    padding: 1rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.1);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 5px;
}

.stat-change {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.stat-change.positive {
    color: #22c55e;
}

.stat-change.negative {
    color: #ef4444;
}

/* Chart */
.chart-container {
    background-color: #1e293b;
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    height: 400px;
    position: relative;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    padding: 20px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.chart-filters .filter-btn {
    background-color: #334155;
    color: #e2e8f0;
    border: none;
    padding: 0.25rem 0.75rem;
    margin-left: 0.25rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

.chart-filters .filter-btn.active,
.chart-filters .filter-btn:hover {
    background-color: #8b5cf6;
    color: white;
}

/* Transactions */
.transactions-container {
    background-color: #1e293b;
    padding: 1rem;
    border-radius: 1rem;
}

.transactions-header {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #cbd5e1;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 0;
    border-bottom: 1px solid #334155;
}

.transaction-info h4 {
    font-size: 0.9rem;
    color: #f1f5f9;
}

.transaction-info p {
    font-size: 0.75rem;
    color: #94a3b8;
}

.transaction-amount {
    font-size: 0.9rem;
    font-weight: bold;
}

.transaction-amount.positive {
    color: #03b86f;
}

.transaction-amount.negative {
    color: #e75c63;
}

.stat-info h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 1.2rem;
    margin-top: 0.5rem;
}

.stat-info h3 i {
    color: #8b5cf6;
    font-size: 1rem;
}

.cards-icon {
    font-size: 26px !important;
    margin-right: 15px;
    margin-top: 4px;
}

.rec-t-main {
    margin-bottom: 7px;
    font-size: 16px;
}

.header-right {
    display: flex;
}

.user-profile-icon {
    font-size: 30px !important;
}

.page-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-container {
  padding: 1rem;
  background-color: #1f2937;
  border-radius: 12px;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.card-header h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.user-table thead {
  background-color: #374151;
  color: #f3f4f6;
}

.user-table th, .user-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #4b5563;
}

.user-table tbody tr:hover {
  background-color: #2d3748;
}

.pagination {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.pagination span {
  color: #d1d5db;
}

.card-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.card-header input[type="text"] {
  padding: 8px 12px;
  border: 1px solid #4b5563;
  border-radius: 8px;
  background-color: #111827;
  color: #f9fafb;
  width: 250px;
}

.data-table {
    padding: 20px !important;
}

.right-aligned-tableheader {
    display: flex;
    margin-left: auto;
}

.btn-table-create {
    margin-left: 20px;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
  background-color: #f8f9fa;
  transition: background-color 0.2s ease;
}

.icon-box:hover {
  background-color: #e2e6ea;
}