/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #7F3DFF;
    --secondary-color: #EEE5FF;
    --success-color: #00A86B;
    --danger-color: #FD3C4A;
    --warning-color: #FCAC12;
    --text-dark: #292B2D;
    --text-medium: #91919F;
    --text-light: #B2B3BD;
    --bg-light: #F5F7FA;
    --white: #FFFFFF;
    --border-color: #E3E5E8;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

/* Authentication Pages */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-light);
}

.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.auth-logo i {
    font-size: 40px;
    margin-bottom: 10px;
}

.auth-logo h1 {
    font-size: 28px;
    font-weight: 700;
}

.auth-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--card-shadow);
}

.auth-card h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.auth-card p {
    color: var(--text-medium);
    margin-bottom: 25px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-dark);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-medium);
}

.input-with-icon input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.input-with-icon input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0;
}

.remember-me, .terms-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input, .terms-checkbox input {
    accent-color: var(--primary-color);
}

.remember-me label, .terms-checkbox label {
    font-size: 14px;
    color: var(--text-medium);
}

.forgot-password {
    font-size: 14px;
    color: var(--primary-color);
}

.auth-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.auth-button:hover {
    background-color: #6a2dd9;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-medium);
}

.error-message {
    background-color: rgba(253, 60, 74, 0.1);
    color: var(--danger-color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Dashboard Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: var(--white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    padding: 25px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    padding: 0 25px;
    margin-bottom: 40px;
}

.sidebar-logo i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 10px;
}

.sidebar-logo h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: var(--text-medium);
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-menu a i {
    margin-right: 15px;
    font-size: 18px;
}

.sidebar-menu a.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-menu a:hover:not(.active) {
    background-color: var(--bg-light);
}

.logout-btn {
    margin-top: 40px;
    padding: 0 25px;
}

.logout-btn button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px;
    background-color: rgba(253, 60, 74, 0.1);
    color: var(--danger-color);
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.logout-btn button i {
    margin-right: 10px;
}

.logout-btn button:hover {
    background-color: rgba(253, 60, 74, 0.2);
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 25px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.search-bar {
    position: relative;
    width: 300px;
}

.app-bar {
    position: relative;
    width: 340px;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--white);
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-medium);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 600;
}

.user-name {
    font-weight: 600;
}

/* Dashboard Page */
.dashboard-page {
    display: none;
}

.dashboard-page.active {
    display: block;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-medium);
}

.card-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 14px;
    color: var(--text-medium);
}

.income-value {
    color: var(--success-color);
}

.expense-value {
    color: var(--danger-color);
}

.recent-transactions {
    background-color: var(--white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
}

.view-all {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.income-icon {
    background-color: var(--success-color);
}

.expense-icon {
    background-color: var(--danger-color);
}

.transaction-details h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.transaction-details p {
    font-size: 14px;
    color: var(--text-medium);
}

.transaction-amount {
    font-weight: 600;
    font-size: 16px;
}

.income-amount {
    color: var(--success-color);
}

.expense-amount {
    color: var(--danger-color);
}

/* Transactions Page */
.transactions-page {
    display: none;
}

.transactions-page.active {
    display: block;
}

.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.transactions-filters {
    display: flex;
    gap: 15px;
}

.filter-button {
    padding: 8px 15px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-medium);
    transition: all 0.3s;
}

.filter-button.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.transactions-table {
    background-color: var(--white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.transactions-table table {
    width: 100%;
    border-collapse: collapse;
}

.transactions-table th {
    text-align: left;
    padding: 15px 10px;
    font-weight: 600;
    color: var(--text-medium);
    border-bottom: 1px solid var(--border-color);
}

.transactions-table td {
    padding: 15px 10px;
    border-bottom: 1px solid var(--border-color);
}

.transactions-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-completed {
    background-color: rgba(0, 168, 107, 0.1);
    color: var(--success-color);
}

.status-pending {
    background-color: rgba(252, 172, 18, 0.1);
    color: var(--warning-color);
}

.status-failed {
    background-color: rgba(253, 60, 74, 0.1);
    color: var(--danger-color);
}

/* Cards Page */
.cards-page {
    display: none;
}

.cards-page.active {
    display: block;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bank-card {
    background-color: var(--primary-color);
    border-radius: 16px;
    padding: 20px;
    color: var(--white);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    min-height: 180px;
}

.bank-card.visa {
    background-color: #1434CB;
}

.bank-card.mastercard {
    background-color: #EB001B;
}

.bank-card.amex {
    background-color: #006FCF;
}

.card-type {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
}

.card-number {
    margin-top: 30px;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.card-details {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.card-holder {
    text-transform: uppercase;
}

.card-balance {
    margin-top: 15px;
    font-size: 20px;
    font-weight: 600;
}

/* Analytics Page */
.analytics-page {
    display: none;
}

.analytics-page.active {
    display: block;
}

.analytics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background-color: var(--white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
}

.chart-filters {
    display: flex;
    gap: 10px;
}

.chart-filter {
    padding: 5px 10px;
    background-color: var(--bg-light);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s;
}

.chart-filter.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.chart-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
}

.spending-categories {
    background-color: var(--white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.category-shopping {
    background-color: var(--primary-color);
}

.category-food {
    background-color: var(--warning-color);
}

.category-transport {
    background-color: var(--success-color);
}

.category-entertainment {
    background-color: #FF7A00;
}

.category-health {
    background-color: #FF4D6D;
}

.category-details h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.category-details p {
    font-size: 14px;
    color: var(--text-medium);
}

.category-amount {
    font-weight: 600;
    font-size: 16px;
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: var(--bg-light);
    border-radius: 4px;
    margin-top: 10px;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    background-color: var(--primary-color);
}

/* Messages Page */
.messages-page {
    display: none;
}

.messages-page.active {
    display: block;
}

.messages-list {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.message-item {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s;
}

.message-item:last-child {
    border-bottom: none;
}

.message-item:hover {
    background-color: var(--bg-light);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.message-sender {
    font-weight: 600;
    font-size: 16px;
}

.message-date {
    font-size: 14px;
    color: var(--text-medium);
}

.message-subject {
    font-weight: 500;
    margin-bottom: 5px;
}

.message-preview {
    color: var(--text-medium);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.unread-indicator {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
}

.message-item.read .unread-indicator {
    display: none;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sidebar {
        width: 70px;
        padding: 20px 0;
    }
    
    .sidebar-logo {
        justify-content: center;
        padding: 0;
    }
    
    .sidebar-logo h1 {
        display: none;
    }
    
    .sidebar-menu a {
        justify-content: center;
        padding: 12px 0;
    }
    
    .sidebar-menu a i {
        margin-right: 0;
    }
    
    .sidebar-menu a span {
        display: none;
    }
    
    .logout-btn {
        padding: 0 10px;
    }
    
    .logout-btn button {
        justify-content: center;
    }
    
    .logout-btn button i {
        margin-right: 0;
    }
    
    .logout-btn button span {
        display: none;
    }
    
    .main-content {
        margin-left: 70px;
    }
}

@media (max-width: 768px) {
    .dashboard-cards, 
    .analytics-cards,
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .transactions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .transactions-table {
        overflow-x: auto;
    }
}

@media (max-width: 576px) {
    .auth-container {
        padding: 15px;
    }
    
    .auth-card {
        padding: 20px;
    }
    
    .main-content {
        padding: 15px;
    }
} 

/* From Uiverse.io by Spacious74 */ 
.radio-inputs {
  position: relative;
  display: flex;
  border-radius: 0.5rem;
  background-color: #70c489;
  box-sizing: border-box;
  font-size: 14px;
  width: 90%;
  padding: 1rem 1rem 0 1rem;
  text-align: center;
    align-items: center;
    justify-content: left;
}

.radio-inputs .radio input {
  display: none;
}

.radio-inputs .radio .name {
  display: flex;
  cursor: pointer;
  text-align: center;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  border: none;
  padding: 0.5rem 0.8rem;
  
  transition: all 0.15s ease-in-out;
  position: relative;
}

.radio-inputs .radio input:checked + .name {
  background-color: #e8e8e8;
  font-weight: 600;
}
.radio-inputs .radio input + .name:hover {
  color: #fff;
}
.radio-inputs .radio input:checked + .name:hover {
  color: #1d1d29;
}

.radio-inputs .radio input:checked + .name::after,
.radio-inputs .radio input:checked + .name::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #70c489;
  bottom: 0;
}

.radio-inputs .radio input:checked + .name::after {
  right: -10px;
  border-bottom-left-radius: 300px;
  box-shadow: -3px 3px 0px 3px #e8e8e8;
}
.radio-inputs .radio input:checked + .name::before {
  left: -10px;
  border-bottom-right-radius: 300px;
  box-shadow: 3px 3px 0px 3px #e8e8e8;
}

.dashboard-carousel {
    position: relative;
    width: 80%;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.dashboard-card {
    min-width: 250px;
    margin: 10px;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.carousel-btn {
    position: absolute;
    top: 40%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
}

.carousel-btn.prev { left: 5px; }
.carousel-btn.next { right: 5px; }

.tabframe{
    display: block;
    position: absolute;
    z-index: 100;
    overflow-x:  scroll;
    width: 80%;
    height: 80vh;
}


.tabframe .tab-pane {
  min-height: 70dvh; /* or any size you want */
}
iframe {
  display: block;
}

/* From Uiverse.io by adamgiebl */ 
.neu-button {
  background-color: #e0e0e0;
  border-radius: 50px;
  box-shadow: inset 4px 4px 10px #bcbcbc, inset -4px -4px 10px #ffffff;
  color: #4d4d4d;
  cursor: pointer;
  font-size: 18px;
  padding: 15px 40px;
  transition: all 0.2s ease-in-out;
  border: 2px solid rgb(206, 206, 206);
}

.neu-button:hover {
  box-shadow: inset 2px 2px 5px #bcbcbc, inset -2px -2px 5px #ffffff, 2px 2px 5px #bcbcbc, -2px -2px 5px #ffffff;
}

.neu-button:focus {
  outline: none;
  box-shadow: inset 2px 2px 5px #bcbcbc, inset -2px -2px 5px #ffffff, 2px 2px 5px #bcbcbc, -2px -2px 5px #ffffff;
}