/* Global Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  scroll-behavior: smooth;
  overscroll-behavior: none; /* Disable pull-to-refresh on mobile */
  -webkit-overflow-scrolling: touch;
  height: 100%; /* Ensure body takes full height for mobile app feel */
  width: 100%;
  touch-action: manipulation; /* Disable zoom on touch devices */
  -webkit-text-size-adjust: 100%; /* Prevent text zoom on orientation change */
  text-size-adjust: 100%;
}

:root {
    --background-light: #F5F5F5;
    --text-light: #333333;
    --card-light: #ffffff;
    --button-bg-light: #000000; /* Black for day mode buttons */
    --button-text-light: #ffffff;
    --border-light: transparent; /* No border */

    --background-dark: #000000; /* Pure black for night mode */
    --text-dark: #ffffff;
    --card-dark: #1a1a1a; /* Darker card for night mode */
    --button-bg-dark: #ffffff; /* White for night mode buttons */
    --button-text-dark: #000000;
    --border-dark: transparent; /* No border */

    --ios-blue: #007AFF; /* Standard iOS blue for active states/links */
}

body {
  opacity: 1;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-weight: 400;
  background-color: var(--background-light);
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 0.95em; /* Slightly smaller base font size */
}

body.dark-mode {
  background-color: var(--background-dark);
  color: var(--text-dark);
}

/* Global loading spinner */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--ios-blue); /* Use iOS blue for spinner */
    border-radius: 10px; /* Square with rounded corners */
    animation: spin 1s linear infinite;
    z-index: 9999;
    display: none;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Container for Mobile App Feel */
.container {
  max-width: 450px;
  margin: 0 auto;
  padding: 15px; /* Slightly less padding */
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px; /* Adjusted padding */
  background-color: var(--card-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: none; /* No border */
  transition: background-color 0.3s ease-in-out;
  /* Removed backdrop-filter */
}
body.dark-mode header {
  background-color: var(--background-dark); /* Pure black for dark mode header */
}

.header-left, .header-right {
    display: flex;
    align-items: center;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.header-logo {
    height: 40px; /* Significantly larger logo size */
    margin-right: 10px;
    cursor: pointer;
}

.header-title {
  font-size: 1.2em; /* Slightly larger font size for title */
  font-weight: 600;
  color: var(--text-light);
  padding-left: 0;
}
body.dark-mode .header-title {
    color: var(--text-dark);
}

.theme-toggle-btn {
    background: none;
    border: none;
    font-size: 1.2em; /* Slightly smaller icon */
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease-in-out, transform 0.15s ease-in-out;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Smaller touch target */
    height: 32px;
    border-radius: 50%;
}
body.dark-mode .theme-toggle-btn {
    color: var(--text-dark);
}
.theme-toggle-btn:active {
    transform: scale(0.9);
}

.support-btn {
    background-color: var(--ios-blue); /* Use iOS blue for support button */
    color: #ffffff;
    padding: 5px 10px; /* Adjusted padding */
    border-radius: 8px; /* Less rounded */
    text-decoration: none;
    font-size: 0.8em; /* Slightly smaller font size */
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease-in-out, transform 0.15s ease-in-out;
    box-shadow: none; /* No shadow */
}
.support-btn i {
    margin-right: 5px; /* Adjusted margin for icon */
    font-size: 0.9em; /* Adjusted icon size */
}
.support-btn:active {
    transform: scale(0.97);
}

/* Navigation Bar */
.nav-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  background-color: var(--card-light);
  border-top: none; /* No border */
  display: flex;
  justify-content: space-around;
  padding: 8px 0; /* Adjusted padding */
  box-sizing: border-box;
  z-index: 1000;
  transition: background-color 0.3s ease-in-out;
}
body.dark-mode .nav-bottom {
  background-color: var(--background-dark); /* Pure black for dark mode nav */
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #888;
  font-size: 0.65em; /* Smaller font size */
  font-weight: 500;
  transition: color 0.2s ease-in-out, transform 0.15s ease-in-out;
  padding: 4px 0; /* Adjusted padding */
}
.nav-item.active {
  color: var(--ios-blue); /* iOS Blue for active state */
}
.nav-item i {
  font-size: 1.4em; /* Slightly smaller icon */
  margin-bottom: 4px; /* Adjusted margin */
}
.nav-item span {
  font-weight: 500;
}
.nav-item:active {
    transform: scale(0.95);
}

/* Footer */
footer {
  text-align: center;
  padding: 15px; /* Adjusted padding */
  font-size: 0.75em; /* Smaller font size */
  color: #888;
  border-top: none; /* No border */
  margin-top: auto;
  transition: color 0.3s ease-in-out;
}
body.dark-mode footer {
    color: #bbb;
}
.footer-info {
  margin-top: 8px; /* Adjusted margin */
}
.footer-info span {
  margin: 0 4px; /* Adjusted margin */
}

/* General Button Style */
.btn {
  display: block;
  width: 100%;
  padding: 10px 12px; /* Adjusted padding */
  border: none;
  border-radius: 8px; /* Slightly less rounded */
  background-color: var(--button-bg-light);
  color: var(--button-text-light);
  font-size: 0.95em; /* Slightly smaller font size */
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, transform 0.15s ease-in-out;
  text-align: center;
  text-decoration: none;
  box-shadow: none; /* No shadow */
}
.primary-btn {
    background-color: var(--ios-blue); /* Use iOS blue for primary actions */
    color: #ffffff;
}
.logout-btn {
    background-color: #dc3545;
    color: #ffffff;
}
.btn:hover {
  opacity: 0.9;
}
.btn:active {
  transform: scale(0.97);
}
.btn-small {
  width: auto;
  padding: 6px 12px; /* Adjusted padding */
  font-size: 0.85em; /* Slightly smaller font */
  border-radius: 6px; /* Less rounded */
  display: inline-block;
  margin-left: 8px; /* Adjusted margin */
  background-color: var(--ios-blue);
  color: #ffffff;
  box-shadow: none; /* No shadow */
}

/* Card Style */
.card {
  background-color: var(--card-light);
  border-radius: 10px; /* Less rounded */
  padding: 15px; /* Slightly less padding */
  margin-bottom: 15px; /* Slightly less margin */
  border: none; /* No border */
  box-shadow: none; /* No shadow */
  transition: background-color 0.3s ease-in-out;
}
body.dark-mode .card {
  background-color: var(--card-dark);
}

/* Form elements */
.auth-page {
    padding: 30px 15px; /* Adjusted padding */
    text-align: center;
}
.auth-form {
    margin-top: 25px; /* Adjusted margin */
    max-width: 280px; /* Slightly narrower */
    margin-left: auto;
    margin-right: auto;
}
.form-group {
  margin-bottom: 15px; /* Slightly less margin */
}
.form-group label {
  display: block;
  margin-bottom: 6px; /* Adjusted margin */
  font-weight: 500;
  text-align: left;
  font-size: 0.9em; /* Slightly smaller font */
}
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
  width: 100%;
  padding: 10px 12px; /* Adjusted padding */
  border: none; /* No border */
  border-radius: 8px;
  background-color: #e0e0e0; /* Grayish background */
  color: var(--text-light);
  font-size: 0.95em; /* Slightly smaller font */
  box-sizing: border-box;
  transition: background-color 0.2s ease-in-out;
}
body.dark-mode .form-group input,
body.dark-mode .form-group select {
  background-color: #3a3a3a;
  color: var(--text-dark);
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: transparent; /* No border on focus */
  box-shadow: none; /* No shadow on focus */
}

/* Input Icons */
.input-with-icon {
  position: relative;
}
.input-with-icon input {
  padding-left: 35px; /* Make space for icon */
}
.input-with-icon .icon {
  position: absolute;
  left: 10px; /* Adjusted position */
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 1em; /* Slightly smaller icon */
}

/* Modals - iOS-like slide from bottom */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px); /* 2% blur effect */
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  z-index: 1001;
}
.modal.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background-color: var(--card-light);
  border-radius: 12px 12px 0 0; /* Slightly less rounded top corners */
  padding: 18px; /* Slightly less padding */
  width: 100%;
  max-width: 450px;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.1); /* Softer shadow */
}
body.dark-mode .modal-content {
  background-color: var(--card-dark);
}
.modal.active .modal-content {
  transform: translateY(0);
}
.close-button {
  color: #aaa;
  float: right;
  font-size: 24px; /* Slightly smaller */
  font-weight: bold;
  position: absolute;
  top: 8px; /* Adjusted position */
  right: 15px; /* Adjusted position */
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}
.close-button:hover,
.close-button:focus {
  color: var(--ios-blue);
}

/* Custom Notification Bar */
.notification-bar {
  position: fixed;
  bottom: 15px; /* Adjusted position */
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px 18px; /* Adjusted padding */
  border-radius: 6px; /* Less rounded */
  font-size: 0.85em; /* Slightly smaller font */
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  min-width: 220px; /* Slightly smaller min-width */
  max-width: 90%;
  text-align: center;
}
.notification-bar.show {
  display: block;
  opacity: 1;
}

/* Page Transition Animations */
.page-transition-enter {
  opacity: 0;
  transform: translateX(100%);
}
.page-transition-enter-active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.page-transition-exit {
  opacity: 1;
  transform: translateX(0);
}
.page-transition-exit-active {
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.3s ease-in, transform 0.3s ease-in;
}

/* Home Page Specific Styles */
.balance-section {
    padding: 20px 15px; /* Adjusted padding */
    text-align: center;
}

.user-profile-header-home {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 15px; /* Adjusted margin */
}

.user-info-home {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s ease-in-out, transform 0.15s ease-in-out;
}
body.dark-mode .user-info-home {
    color: var(--text-dark);
}
.user-info-home:active {
    transform: scale(0.97);
}

.profile-picture-small {
    width: 28px; /* Slightly smaller */
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 6px; /* Adjusted margin */
    border: none; /* No border */
}

.username-small {
    font-size: 0.85em; /* Slightly smaller font */
    font-weight: 500;
}

.balance-display-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px; /* Adjusted margin */
}

.balance-info {
    text-align: left;
}

.balance-label {
    font-size: 0.85em; /* Slightly smaller font */
    color: #888;
    margin-bottom: 4px; /* Adjusted margin */
    display: block;
}

.balance-amount-wrapper {
    display: flex;
    align-items: baseline;
}

.balance-currency-icon {
    font-size: 2em; /* Slightly smaller $ icon */
    font-weight: 700;
    margin-right: 4px; /* Adjusted margin */
    color: var(--text-light);
}
body.dark-mode .balance-currency-icon {
    color: var(--text-dark);
}

.balance-amount {
    font-size: 2.2em; /* Slightly smaller font */
    font-weight: 700;
    color: var(--text-light);
}
body.dark-mode .balance-amount {
    color: var(--text-dark);
}

.balance-change {
    font-size: 0.9em; /* Slightly smaller font */
    font-weight: 600;
    margin-left: 8px; /* Adjusted margin */
}

.balance-mini-chart {
    width: 70px; /* Smaller chart size */
    height: 35px;
    background-color: transparent;
    border-radius: 4px; /* Less rounded */
    border: none;
}

.action-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 15px; /* Adjusted margin */
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--button-text-light); /* Text color based on button */
    background-color: var(--button-bg-light); /* Black for day mode */
    border-radius: 50%; /* Circular buttons */
    width: 70px; /* Medium size */
    height: 70px;
    justify-content: center;
    font-size: 0.8em; /* Smaller font */
    font-weight: 500;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, transform 0.15s ease-in-out;
    box-shadow: none; /* No shadow */
    border: none; /* No border */
}
body.dark-mode .action-btn {
    color: var(--button-text-dark); /* Text color based on button */
    background-color: var(--button-bg-dark); /* White for night mode */
}
.action-btn:active {
    transform: scale(0.95);
}

.action-btn i {
    font-size: 1.6em; /* Slightly smaller icons */
    margin-bottom: 6px; /* Adjusted margin */
}

.crypto-prices-section h2,
.user-activity-section h2,
.profit-chart-section h2 {
    font-size: 1.05em; /* Slightly smaller font */
    font-weight: 600;
    margin-bottom: 12px; /* Adjusted margin */
    padding-left: 15px; /* Align with container padding */
    padding-right: 15px;
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background-color: var(--card-light);
    border-radius: 10px; /* Less rounded */
    border: none; /* No border */
    margin: 0 15px 15px 15px; /* Adjusted margin */
    overflow: hidden;
}
body.dark-mode .price-list {
    background-color: transparent; /* No card for crypto list in dark mode */
}

.price-item-no-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px; /* Adjusted padding */
    border-bottom: 0.5px solid rgba(128, 128, 128, 0.1); /* Very thin, subtle separator */
    font-size: 0.85em; /* Slightly smaller font */
    font-weight: 500;
    transition: background-color 0.3s ease-in-out;
}
body.dark-mode .price-item-no-card {
    border-color: rgba(255, 255, 255, 0.1);
}
.price-item-no-card:last-child {
    border-bottom: none;
}

.price-item-no-card img {
    margin-right: 10px; /* Adjusted margin */
    width: 24px; /* Slightly smaller logo size */
    height: 24px;
}

.crypto-name {
    font-weight: 600;
    flex-grow: 1;
}

.crypto-price {
    font-size: 0.9em; /* Slightly smaller price font */
    margin-right: 8px; /* Adjusted margin */
}

.price-change {
    font-size: 0.8em; /* Slightly smaller change font */
    display: flex;
    align-items: center;
}
.price-change i {
    margin-right: 3px;
}

.text-green {
    color: #28a745;
}

.text-red {
    color: #dc3545;
}

.user-activity-section {
    padding: 0 15px; /* Align with container padding */
    position: relative;
    margin-bottom: 15px; /* Adjusted margin */
}

.activity-list-container {
    max-height: 200px; /* Smaller height */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    border-radius: 10px; /* Less rounded */
    box-shadow: none;
    border: none; /* No border */
    background-color: var(--card-light);
}
body.dark-mode .activity-list-container {
    background-color: transparent; /* No card for activity list in dark mode */
}

/* Removed smoke effect */
.activity-list-container::before,
.activity-list-container::after {
    content: none;
}

.activity-list {
    position: relative;
    padding: 0;
    min-height: auto;
    background-color: transparent;
    border-radius: 0;
}
body.dark-mode .activity-list {
    background-color: transparent;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px; /* Adjusted padding */
    border-bottom: 0.5px solid rgba(128, 128, 128, 0.1); /* Very thin, subtle separator */
    font-size: 0.85em;
    transition: all 0.3s ease-in-out;
    position: relative;
    width: 100%;
    top: auto;
    left: auto;
    opacity: 1;
    transform: translateY(0);
}
body.dark-mode .activity-item {
    border-color: rgba(255, 255, 255, 0.1);
}
.activity-item:last-child {
    border-bottom: none;
}

.activity-email {
    flex: 2;
    font-weight: 500;
    font-size: 0.8em; /* Smaller email font */
}

.activity-type {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 0.8em;
}

.activity-amount {
    flex: 1;
    text-align: right;
    font-weight: 600;
    font-size: 0.85em;
}

.activity-time {
    flex: 1;
    text-align: right;
    color: #888;
    font-size: 0.7em; /* Smaller time font */
}

/* Removed activity slide in/out animation */
.activity-slide-in, .activity-slide-out {
    opacity: 1;
    transform: translateY(0);
}

.profit-chart-section {
    padding: 0 15px; /* Align with container padding */
    margin-bottom: 15px;
}

.full-width-chart {
    width: 100%;
    height: 180px; /* Smaller chart height */
    background-color: var(--card-light);
    border-radius: 10px; /* Less rounded */
    overflow: hidden;
    transition: background-color 0.3s ease-in-out;
    box-shadow: none;
    margin-top: 8px; /* Adjusted margin */
    border: none; /* No border */
}
body.dark-mode .full-width-chart {
    background-color: transparent; /* No card for chart in dark mode */
}

/* Auth Page Specific Styles */
.auth-title {
    font-size: 1.6em; /* Slightly smaller title */
    font-weight: 700;
    margin-bottom: 25px; /* Adjusted margin */
    color: var(--text-light);
    text-align: center;
}
body.dark-mode .auth-title {
    color: var(--text-dark);
}

.auth-footer-text {
    font-size: 0.85em; /* Slightly smaller font */
    color: #888;
    margin-top: 20px; /* Adjusted margin */
    text-align: center;
}

.auth-link {
    color: var(--ios-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease-in-out;
}
.auth-link:hover {
    color: var(--ios-blue);
    opacity: 0.8;
}

.auth-btn {
    background-color: var(--button-bg-light); /* Black button for day mode */
    color: var(--button-text-light);
    border-radius: 8px; /* Less rounded */
    font-size: 1em; /* Slightly smaller font */
    padding: 12px 15px; /* Adjusted padding */
    transition: background-color 0.3s ease-in-out, transform 0.15s ease-in-out;
}
body.dark-mode .auth-btn {
    background-color: var(--button-bg-dark); /* White button for dark mode */
    color: var(--button-text-dark);
}
.auth-btn:active {
    transform: scale(0.98);
}

/* Navigation Bar - Active item color */
.nav-item.active {
    color: var(--ios-blue);
}
.nav-item:active {
    transform: scale(0.95);
}

/* Modals - Blur effect */
.modal {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Profile Page Specific Styles */
.profile-header {
    text-align: center;
    margin-bottom: 25px; /* Adjusted margin */
}

.profile-picture-container {
    position: relative;
    width: 90px; /* Slightly smaller */
    height: 90px;
    margin: 0 auto 15px auto; /* Adjusted margin */
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--card-light);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: none; /* No shadow */
    border: none; /* No border */
}
body.dark-mode .profile-picture-container {
    background-color: var(--card-dark);
}

.profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-icon {
    position: absolute;
    bottom: -5px; /* Adjusted position */
    right: -5px; /* Adjusted position */
    background-color: var(--ios-blue);
    color: white;
    border-radius: 50%;
    width: 28px; /* Slightly smaller */
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8em; /* Smaller font */
    cursor: pointer;
}

.username-display {
    font-size: 1.2em; /* Slightly smaller */
    font-weight: 600;
    margin-bottom: 4px; /* Adjusted margin */
    display: flex;
    align-items: center;
    justify-content: center;
}
.username-display i {
    margin-right: 5px; /* Adjusted margin */
}

.balance-display {
    font-size: 0.95em; /* Slightly smaller */
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
}
.balance-display i {
    margin-right: 5px; /* Adjusted margin */
}

.profile-info-section .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0; /* Adjusted padding */
    border-bottom: 0.5px solid rgba(128, 128, 128, 0.1); /* Thin, subtle border */
}
body.dark-mode .profile-info-section .info-item {
    border-color: rgba(255, 255, 255, 0.1);
}
.profile-info-section .info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    display: flex;
    align-items: center;
    color: #888;
    font-size: 0.9em; /* Slightly smaller font */
}
.info-label i {
    margin-right: 8px; /* Adjusted margin */
    color: var(--ios-blue);
}

.info-value {
    font-weight: 600;
    font-size: 0.9em; /* Slightly smaller font */
}

.profile-actions button {
    margin-bottom: 8px; /* Adjusted margin */
}
.profile-actions button:last-child {
    margin-bottom: 0;
}

.theme-toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0; /* Adjusted padding */
}

/* History Page Specific Styles */
.transaction-list-modern {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Slightly less gap */
}

.transaction-item-modern {
    display: flex;
    align-items: center;
    padding: 12px; /* Slightly less padding */
    background-color: var(--card-light);
    border-radius: 10px; /* Less rounded */
    border: none; /* No border */
    box-shadow: none;
    transition: background-color 0.3s ease-in-out;
}
body.dark-mode .transaction-item-modern {
    background-color: var(--card-dark);
}

.transaction-icon {
    font-size: 1.4em; /* Slightly smaller */
    margin-right: 12px; /* Adjusted margin */
    width: 28px; /* Slightly smaller */
    text-align: center;
}

.transaction-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.transaction-type-label {
    font-weight: 600;
    font-size: 0.95em; /* Slightly smaller */
}

.transaction-date {
    font-size: 0.75em; /* Slightly smaller */
    color: #888;
    margin-top: 2px; /* Adjusted margin */
}

.transaction-amount-status {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.transaction-amount {
    font-weight: 600;
    font-size: 0.95em; /* Slightly smaller */
}

.transaction-status {
    font-size: 0.75em; /* Slightly smaller */
    padding: 2px 6px; /* Adjusted padding */
    border-radius: 4px; /* Less rounded */
    margin-top: 4px; /* Adjusted margin */
    display: inline-block;
}

.status-pending {
    background-color: #ffc107;
    color: #333;
}

.status-completed {
    background-color: #28a772;
    color: #fff;
}

.status-rejected {
    background-color: #dc3545;
    color: #fff;
}
