/**
 * Financial Cooperative - Mobile-First Responsive Styles
 * Clean, lightweight visual elements with modern UI
 * Meta viewport scaled to prevent page zooming on mobile
 */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1f2937;
    background-color: #f9fafb;
}

body {
    min-height: 100vh;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================================
   HEADER STYLES
   ============================================ */
.admin-header,
.member-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-header h1,
.member-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.header-content {
    margin-bottom: 16px;
}

.welcome-text {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Navigation */
.admin-nav,
.member-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.admin-nav a,
.member-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.1);
}

.admin-nav a:hover,
.member-nav a:hover,
.admin-nav a.active,
.member-nav a.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.admin-content,
.member-content {
    padding: 24px 0;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 24px;
}

.card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1f2937;
}

.card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #374151;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
    font-size: 0.875rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input[type="file"] {
    width: 100%;
    padding: 8px 0;
}

small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 0.75rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #2563eb;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #4b5563;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
}

.btn-block {
    width: 100%;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* ============================================
   TABLES
   ============================================ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead {
    background: #f9fafb;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th {
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-pending,
.status-rejected {
    background: #fef3c7;
    color: #92400e;
}

.status-approved,
.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-liquidated {
    background: #dbeafe;
    color: #1e40af;
}

.status-error {
    background: #fee2e2;
    color: #991b1b;
}

.status-success {
    background: #d1fae5;
    color: #065f46;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 16px;
}

.login-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 32px;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-header h1 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 8px;
}

.login-header p {
    color: #6b7280;
    font-size: 0.875rem;
}

.login-type-selector {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.radio-label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f9fafb;
}

.radio-label:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.radio-label.active {
    border-color: #3b82f6;
    background: #eff6ff;
}

.radio-label.admin-label.active {
    border-color: #1e40af;
    background: #dbeafe;
}

.radio-label.member-label.active {
    border-color: #10b981;
    background: #d1fae5;
}

.radio-label input[type="radio"] {
    display: none;
}

.label-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.label-content .icon {
    font-size: 1.5rem;
}

.label-content .text {
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
}

.login-form {
    margin-top: 24px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.875rem;
    color: #6b7280;
}

/* ============================================
   DASHBOARD SPECIFIC
   ============================================ */
.balance-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.balance-card h2 {
    color: white;
    opacity: 0.9;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 16px 0;
}

.balance-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.detail-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 6px;
}

.detail-item .label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.detail-item .value {
    font-size: 1rem;
    font-weight: 600;
}

/* Loan Card */
.loan-card {
    border-left: 4px solid #3b82f6;
}

.loan-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.loan-type {
    font-size: 0.875rem;
    color: #6b7280;
}

.loan-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
}

.progress-section {
    margin: 20px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #1e40af 100%);
    transition: width 0.3s ease;
}

.loan-details {
    margin-top: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row.highlight {
    background: #f0fdf4;
    padding: 12px;
    margin: 16px -12px -12px -12px;
    border-radius: 6px;
}

.detail-row .label {
    color: #6b7280;
    font-size: 0.875rem;
}

.detail-row .value {
    font-weight: 600;
    color: #1f2937;
}

/* Borrowing Power Card */
.borrowing-card {
    border-left: 4px solid #10b981;
}

.borrowing-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #10b981;
    margin: 16px 0;
}

.borrowing-amount.ineligible {
    color: #6b7280;
}

.borrowing-note {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.borrowing-terms {
    background: #f9fafb;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.borrowing-terms p {
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 8px;
}

.borrowing-terms p:last-child {
    margin-bottom: 0;
}

/* ============================================
   MARKETPLACE
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-image {
    background: #f3f4f6;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    width: 80px;
    height: 80px;
    background: #d1d5db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #6b7280;
}

.product-details {
    padding: 16px;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
}

.product-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-pricing {
    margin: 12px 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.875rem;
}

.price-row.total {
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
    margin-top: 8px;
    font-weight: 600;
    font-size: 1rem;
}

.purchase-form {
    margin-top: 16px;
}

/* ============================================
   CONTRIBUTIONS LIST
   ============================================ */
.contributions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contribution-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
}

.contribution-month {
    color: #6b7280;
    font-size: 0.875rem;
}

.contribution-amount {
    font-weight: 600;
    color: #1f2937;
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.stat-card h3 {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
}

/* ============================================
   UPLOAD STATS
   ============================================ */
.upload-stats {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-item .stat-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.stat-item .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-item.success .stat-value {
    color: #10b981;
}

.stat-item.error .stat-value {
    color: #ef4444;
}

/* ============================================
   DETAILS SECTIONS
   ============================================ */
.loan-details,
.member-details,
.exit-details {
    background: #f9fafb;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.loan-info,
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.loan-info:last-child,
.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: #6b7280;
    font-size: 0.875rem;
}

.info-row .value {
    font-weight: 600;
    color: #1f2937;
}

.audit-section {
    margin: 20px 0;
    padding: 16px;
    border-radius: 6px;
}

.audit-section h3 {
    margin-bottom: 12px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.instructions {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.no-data {
    color: #6b7280;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

.export-section {
    margin-top: 16px;
}

/* ============================================
   ADMIN DASHBOARD SIDEBAR LAYOUT
   ============================================ */
.admin-dashboard {
    background: #f3f4f6;
}

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

/* Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease, width 0.3s ease;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .nav-text,
.sidebar.collapsed .logo-text,
.sidebar.collapsed .user-details,
.sidebar.collapsed .logout-text {
    display: none;
}

.sidebar.collapsed .logo {
    justify-content: center;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 12px;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-weight: 600;
    font-size: 1rem;
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    display: none;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    position: relative;
}

.hamburger:before,
.hamburger:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: white;
    left: 0;
}

.hamburger:before {
    top: -6px;
}

.hamburger:after {
    top: 6px;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 0 24px 24px 0;
    margin-right: 12px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
}

.nav-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.nav-text {
    font-size: 0.875rem;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 2px;
}

.user-role {
    font-size: 0.75rem;
    opacity: 0.8;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.logout-icon {
    font-size: 1rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 80px;
}

/* Top Bar */
.top-bar {
    background: white;
    padding: 16px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.mobile-menu-toggle .hamburger {
    background: #1f2937;
}

.mobile-menu-toggle .hamburger:before,
.mobile-menu-toggle .hamburger:after {
    background: #1f2937;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-bell {
    position: relative;
    cursor: pointer;
}

.bell-icon {
    font-size: 1.25rem;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Content Wrapper */
.content-wrapper {
    padding: 24px;
    flex: 1;
}

/* Enhanced Card Styles */
.card-header {
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

.card-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.card-body {
    padding: 0;
}

/* Enhanced Stat Cards */
.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.members-icon {
    background: #dbeafe;
}

.savings-icon {
    background: #d1fae5;
}

.loans-icon {
    background: #fef3c7;
}

.balance-icon {
    background: #fee2e2;
}

.exits-icon {
    background: #e0e7ff;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.stat-content .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2px;
}

.stat-content .stat-label {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Action Buttons */
.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    flex: 1;
    min-width: 180px;
    justify-content: center;
}

.action-btn.primary {
    background: #3b82f6;
    color: white;
}

.action-btn.primary:hover {
    background: #2563eb;
}

.action-btn.secondary {
    background: #6b7280;
    color: white;
}

.action-btn.secondary:hover {
    background: #4b5563;
}

.action-btn.success {
    background: #10b981;
    color: white;
}

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

.action-btn.danger {
    background: #ef4444;
    color: white;
}

.action-btn.danger:hover {
    background: #dc2626;
}

.action-icon {
    font-size: 1.125rem;
}

.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.activity-action {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
}

.activity-time {
    color: #6b7280;
    font-size: 0.75rem;
}

.activity-details {
    margin-bottom: 8px;
}

.activity-user {
    color: #6b7280;
    font-size: 0.875rem;
}

.activity-description {
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Admin Footer */
.admin-footer {
    background: white;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: #6b7280;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN - SIDEBAR
   ============================================ */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
    
    .main-content {
        margin-left: 220px;
    }
    
    .sidebar.collapsed ~ .main-content {
        margin-left: 70px;
    }
    
    .sidebar.collapsed {
        width: 70px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 260px;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .sidebar.collapsed {
        width: 260px;
    }
    
    .sidebar.collapsed .nav-text,
    .sidebar.collapsed .logo-text,
    .sidebar.collapsed .user-details,
    .sidebar.collapsed .logout-text {
        display: block;
    }
    
    .sidebar.collapsed .logo {
        justify-content: flex-start;
    }
    
    .sidebar.collapsed .nav-link {
        justify-content: flex-start;
        padding: 12px 20px;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar.collapsed ~ .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .content-wrapper {
        padding: 16px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .action-btn {
        min-width: 100%;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }
    
    .top-bar {
        padding: 12px 16px;
    }
    
    .page-title {
        font-size: 1rem;
    }
    
    .content-wrapper {
        padding: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .stat-content .stat-value {
        font-size: 1.25rem;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .admin-header h1,
    .member-header h1 {
        font-size: 1.25rem;
    }
    
    .admin-nav,
    .member-nav {
        flex-direction: column;
    }
    
    .admin-nav a,
    .member-nav a {
        text-align: center;
    }
    
    .card {
        padding: 16px;
    }
    
    .balance-amount,
    .borrowing-amount {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    html, body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .card {
        padding: 12px;
    }
    
    .login-container {
        padding: 20px;
    }
    
    .balance-amount,
    .borrowing-amount {
        font-size: 1.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .data-table {
        font-size: 0.75rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px;
    }
}
