/* 
    Theme Name: My Custom themes
    Theme URI:  http://localhost/wordpress
    Description:  Tra Da Infinity Valley
    Author:     Nam Tran
    Version:    1.1.3
    License:      GNU General Public License v2 or later
*/
a, a:hover {
    text-decoration: none;
}
.menu-main-menu-container ul{
    display: flex;
    list-style: none;
    padding: 0;
}
.menu-main-menu-container ul li{
    padding: 8px 20px;
}
.newtheme_post {
    display: flex;
    align-items: center;
}
.newtheme_post img {
    max-width: 200px;
    height: auto;
}
#listuser table{
    min-width: 50%;
}
#listuser table td{
    border: 1px dotted;
    border-collapse: collapse;
    padding: 0px 15px;
    line-height: 40px;
}
.center {
    text-align: center;
}
.ui-helper-hidden-accessible{
    display:none;
}
.ui-autocomplete {
    list-style: none;
    padding: 5px;
    margin: 0;
    background-color: rgb(255, 253, 226);
    box-sizing: border-box;
    max-width: 438px;
    z-index: 100;
}
.ui-autocomplete li {
    padding: 10px;
}
.ui-autocomplete li:hover {
    background-color: rgb(255, 238, 160);
    font-weight: bold;
    cursor: pointer;
}
.product_label{
    padding: 8px 0;
    font-weight: bold;
}
.order_listing a{
    display: inline-flex;
    background: aliceblue;
    padding: 6px 16px;
    border: 1px solid dodgerblue;
    height: 81px;
    align-items: center;
    margin: 5px;
}
.order_listing a.doneorder {
    border-color: #14bd14;
    background: #e3ffe7;
    color: #14bd14;
}
.order_listing a.neworder{
    border-color: #bd1414;
    background: #ffe3e3;
    color: #bd1414;
}

/* Debt table styles */
.debt-table {
    width: 100%;
    border-collapse: collapse;
}
.debt-table th, .debt-table td {
    padding: 8px;
    border: 1px solid #ddd;
}
.debt-table th {
    background-color: #f2f2f2;
}
.negative {
    color: green;
}
.positive {
    color: red;
}

/* Small user avatar for tables */
.user-avatar-small {
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 5px;
    border: 1px solid #eee;
}

.debt-table td {
    vertical-align: middle;
}

/* Ensure vertical alignment in debt tables */
.member-name-with-avatar {
    display: flex;
    align-items: center;
}

/* Group Box Styles */
.group-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.group-box {
    flex: 0 0 calc(33.333% - 20px);
    min-height: 120px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.group-box:hover {
    background-color: #e9f7fe;
    border-color: #0066cc;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.group-box a.box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    text-decoration: none;
    color: #333;
    text-align: center;
}

.group-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.member-count {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.group-box .box:hover {
    color: #0066cc;
}

.group-box .box:hover .member-count {
    color: #3388cc;
}

.no-data {
    width: 100%;
    text-align: center;
    padding: 30px;
    font-style: italic;
    color: #888;
}

/* Make boxes stack on mobile */
@media (max-width: 768px) {
    .group-box {
        flex: 0 0 100%;
    }
}

/* Add order button in group box */
.group-add-order {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 102, 204, 0.8);
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 20px 5px 5px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    z-index: 5;
    display: flex;
    align-items: center;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0.2);
    transform: scale(0.95);
}

.group-add-order:hover {
    background-color: rgba(0, 102, 204, 1);
    transform: scale(1);
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

.group-add-order .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    margin-right: 3px;
    display: inline-block;
    vertical-align: middle;
}

/* Make the button fade in on hover */
.group-box .group-add-order {
    opacity: 0.6;
    width: fit-content;
    height: fit-content;
    bottom: 0;
    right: -3px;
}

.group-box:hover .group-add-order {
    opacity: 1;
}

/* Order Box Styles */
.order-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.order-box {
    flex: 0 0 calc(33.333% - 20px);
    min-height: 150px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
}

.order-box:hover {
    background-color: #e9f7fe;
    border-color: #0066cc;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.order-box-new {
    border-color: #bd1414;
    background-color: #ffe3e3;
}

.order-box-completed {
    border-color: #14bd14;
    background-color: #e3ffe7;
}

.order-box a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    text-decoration: none;
    color: #333;
}

.order-date {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.order-cost {
    font-size: 16px;
    color: #e44d26;
    font-weight: bold;
    margin-bottom: 5px;
}

.order-status {
    font-size: 14px;
    margin-bottom: 5px;
}

.order-box-new .order-status {
    color: #bd1414;
}

.order-box-completed .order-status {
    color: #14bd14;
}

.order-members {
    font-size: 12px;
    color: #666;
    font-style: italic;
    max-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-box a:hover {
    color: #0066cc;
}

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

/* Make order boxes stack on mobile */
@media (max-width: 768px) {
    .order-box {
        flex: 0 0 100%;
    }
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.action-buttons a {
    text-decoration: none;
}

.member-debt-buttons {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

.member-debt-buttons h3 {
    margin-bottom: 15px;
}

.member-debt-buttons .action-buttons {
    flex-wrap: wrap;
}

.member-debt-buttons .mui-btn {
    margin-bottom: 10px;
}

/* Datepicker Styles */
.ui-datepicker {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 280px;
    padding: 10px;
    font-family: Arial, sans-serif;
    display: none;
    z-index: 1000 !important;
}

.ui-datepicker .ui-datepicker-header {
    background-color: #0066cc;
    color: white;
    border-radius: 3px;
    padding: 8px;
    position: relative;
    margin-bottom: 8px;
}

.ui-datepicker .ui-datepicker-title {
    text-align: center;
    font-weight: bold;
    margin: 0 2.3em;
    line-height: 1.8em;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    position: absolute;
    top: 8px;
    width: 1.8em;
    height: 1.8em;
    cursor: pointer;
    font-size: 13px;
}

.ui-datepicker .ui-datepicker-prev {
    left: 8px;
    color: white;
}

.ui-datepicker .ui-datepicker-next {
    right: 18px;
    color: white;
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -8px;
    margin-top: -8px;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
    background-color: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.ui-datepicker .ui-datepicker-prev-hover,
.ui-datepicker .ui-datepicker-next-hover {
    background-color: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.ui-datepicker table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 8px;
}

.ui-datepicker th {
    padding: 8px 0;
    text-align: center;
    font-weight: bold;
    border: 0;
    color: #666;
    background-color: #f5f5f5;
}

.ui-datepicker td {
    border: 0;
    padding: 1px;
}

.ui-datepicker td span,
.ui-datepicker td a {
    display: block;
    padding: 8px;
    text-align: center;
    text-decoration: none;
    color: #333;
    border-radius: 3px;
}

.ui-datepicker .ui-datepicker-today a {
    background-color: #468dd5;
    color: white;
    font-weight: bold;
}

.ui-datepicker .ui-state-active {
    background-color: #0066cc;
    color: white;
}

.ui-datepicker td a:hover {
    background-color: #e9f7fe;
    color: #0066cc;
}

.ui-datepicker .ui-state-disabled {
    opacity: 0.35;
}

.ui-datepicker-month,
.ui-datepicker-year {
    border: none;
    background: transparent;
    color: white;
    font-weight: bold;
    padding: 2px;
    margin: 0 2px;
}

.ui-datepicker-trigger {
    margin-left: 5px;
    vertical-align: middle;
    cursor: pointer;
}

/* Style the input field */
#datepicker {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

#datepicker:focus {
    border-color: #0066cc;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

#datepicker:hover {
    border-color: #999;
}

/* Author Profile Styles */
.author-profile {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

.author-avatar {
    margin-bottom: 20px;
}

.author-avatar img {
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.author-name {
    margin-bottom: 25px;
    font-size: 24px;
    color: #333;
}

.author-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    flex-direction: column;
}

.author-actions a {
    text-decoration: none;
    min-width: 140px;
}

.author-debt {
    margin-top: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.author-debt h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
}

@media (max-width: 768px) {
    .author-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .author-actions a {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Bank account information styles */
.author-bank-info {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.bank-account, .bank-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bank-label {
    font-weight: bold;
    color: #555;
}

.bank-value {
    font-family: monospace;
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    color: #0066cc;
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .author-bank-info {
        padding: 10px;
    }
    
    .bank-value {
        font-size: 14px;
    }
}

/* Home Page Styles */
.home-welcome {
    text-align: center;
    margin: 30px 0;
}

.home-welcome h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 5px;
    color: #333;
}

.home-date {
    color: #666;
    font-style: italic;
    margin-bottom: 25px;
}

.summary-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    flex: 1 1 calc(25% - 60px); /* Changed from 33.333% to 25% to fit 4 cards */
    min-width: 200px; /* Reduced from 250px to allow 4 cards in a row */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.summary-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.summary-card-icon {
    font-size: 36px;
    margin-right: 20px;
    color: #0066cc;
    width: 50px;
    text-align: center;
}

.dashicons {
    width: 50px;
    height: 50px;
    font-size: 36px;
}

.summary-card-content {
    flex: 1;
}

.summary-card-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.summary-card-label {
    font-size: 14px;
    color: #666;
}

.home-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.home-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.section-header h2 {
    font-size: 20px;
    margin: 0;
    color: #333;
}

.section-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
}

.section-link:hover {
    text-decoration: underline;
}

.order-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.order-group {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.payer-badge {
    background-color: #0066cc;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

.owner-badge {
    background-color: #14bd14;
    color: white;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
    margin-top: 8px;
    display: inline-block;
}

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

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 100px;
    border-radius: 8px;
    background-color: #f5f5f5;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 10px;
    text-align: center;
}

.quick-action-btn i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #0066cc;
}

.quick-action-btn span {
    font-size: 14px;
}

.quick-action-btn:hover {
    background-color: #e9f7fe;
    transform: translateY(-2px);
    color: #0066cc;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

@media (max-width: 1200px) {
    .summary-card {
        flex: 1 1 calc(50% - 50px); /* 2 cards per row on medium screens */
    }
}

@media (max-width: 768px) {
    .summary-card {
        flex: 1 1 calc(50% - 50px); /* 2 cards per row on small screens */
    }
    
    .quick-action-btn {
        width: calc(50% - 10px);
        height: 90px;
    }
}

/* Group and order count display */
.group-stats {
    margin: 5px 0 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.member-count, .order-count {
    font-style: italic;
}

/* Debt status badges */
.debt-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.debt-status-positive {
    background-color: #e8f5e9;
    color: #388e3c;
}

.debt-status-negative {
    background-color: #ffebee;
    color: #d32f2f;
}

/* Improved order layout */
.order-group, .order-members {
    font-size: 13px;
    margin: 3px 0;
    color: #555;
}

.order-group strong, .order-members strong {
    color: #333;
}

/* Login page styles */
.login-page {
    background-color: #f5f5f5;
    min-height: 100vh;
}

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    padding: 20px;
    z-index: 1;
    position: relative;
}

.login-register-form {
    max-width: 400px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
    padding: 30px;
    margin: 0 auto;
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
    color: #0a1628;
    font-size: 24px;
}

.login-button {
    width: 100%;
    margin-top: 15px;
}

.alert.alert-secondary {
    max-width: 400px;
    width: 100%;
    margin-bottom: 20px;
    background-color: #ffebee;
    color: #d32f2f;
    padding: 10px 15px;
    border-radius: 4px;
    text-align: center;
}

.login-page #header {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.login-page .mui-textfield {
    margin-bottom: 15px;
}

.login-page .mui-checkbox {
    margin-top: 5px;
}

/* Starry background */
#starry-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
}

/* Fixed Quick Actions Bar */
.fixed-quick-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.quick-actions-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.fixed-quick-actions .quick-action-btn {
    width: auto;
    height: auto;
    flex: 0 0 auto;
    background-color: transparent;
    box-shadow: none;
    padding: 10px 15px;
    transition: transform 0.2s;
}

.fixed-quick-actions .quick-action-btn:hover {
    transform: translateY(-5px);
    background-color: transparent;
    box-shadow: none;
    text-decoration: none;
}

.fixed-quick-actions .quick-action-btn i {
    font-size: 32px;
    margin-bottom: 5px;
    color: #0066cc;
}

.fixed-quick-actions .dashicons {
    width: 32px;
    height: 32px;
    font-size: 32px;
}

/* Add padding to body to prevent content from being hidden behind the fixed bar */
body {
    padding-bottom: 80px;
}

/* Make quick actions responsive */
@media (max-width: 600px) {
    .quick-actions-container {
        gap: 5px;
    }
    
    .fixed-quick-actions .quick-action-btn {
        padding: 10px 5px;
    }
    
    .fixed-quick-actions .quick-action-btn span {
        font-size: 12px;
    }
}

/* Group Details Page Styles */
.group-details-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.group-details-header {
    margin-bottom: 30px;
}

.group-details-header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.group-details-meta {
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.group-details-content {
    margin-bottom: 40px;
}

.group-members-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.group-member-item {
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 15px;
    width: 150px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.group-member-item:hover {
    background-color: #e9f7fe;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.member-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 10px;
    overflow: hidden;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.member-debt {
    font-size: 13px;
}

.group-summary {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.debt-details-button {
    display: inline-block;
    background-color: #0066cc;
    color: white;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.debt-details-button:hover {
    background-color: #0055aa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
    text-decoration: none;
}

.group-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Remove Member Button */
.remove-member-btn {
    display: inline-block;
    color: #d32f2f;
    font-size: 13px;
    padding: 0px 20px;
    background-color: #ffebee;
    transition: all 0.2s ease;
    text-decoration: none;
    margin: 5px 0;
    border-radius: 20px;
}

.remove-member-btn:hover {
    background-color: #ffd1d8;
    color: #b71c1c;
    text-decoration: none;
}

/* Set Owner Button */
.set-owner-btn {
    display: inline-block;
    color: #0066cc;
    font-size: 13px;
    padding: 0px 20px;
    background-color: #e3f2fd;
    transition: all 0.2s ease;
    text-decoration: none;
    margin: 5px 5px;
    border-radius: 20px;
}

.set-owner-btn:hover {
    background-color: #bbdefb;
    color: #0055aa;
    text-decoration: none;
}

/* Owner label in table */
.owner-label {
    display: inline-block;
    color: #14bd14;
    font-size: 13px;
    padding: 3px 12px;
    border-radius: 12px;
    font-weight: bold;
}

/* Disband Group Button */
.disband-group-btn {
    display: inline-block;
    color: #d32f2f;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    background-color: transparent;
    border: 1px solid #d32f2f;
}

.disband-group-btn:hover {
    background-color: #ffebee;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.2);
    text-decoration: none;
    color: #b71c1c;
}

/* Alert for disband errors */
.alert.alert-error {
    max-width: 500px;
    width: 100%;
    margin-bottom: 20px;
    background-color: #ffebee;
    color: #d32f2f;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    border-left: 4px solid #d32f2f;
}

/* Order Detail Page Styles */
.order-container {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 20px;
}

.center {
    text-align: center;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

.alert-success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.order-header {
    text-align: center;
    margin-bottom: 30px;
}

.order-header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.order-summary {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.order-info-item {
    padding: 10px 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.order-info-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.order-info-value {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.order-status-new {
    color: #d32f2f;
}

.order-status-completed {
    color: #388e3c;
}

.order-details {
    margin-bottom: 40px;
}

.order-details h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
    color: #333;
}

.order-items-table {
    overflow-x: auto;
}

.order-items-table table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 20px;
}

.order-items-table th {
    background-color: #f5f5f5;
    color: #333;
    padding: 12px 15px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #e0e0e0;
}

.order-items-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

.order-items-table tbody tr:hover {
    background-color: #f9f9f9;
}

.order-items-table tfoot {
    font-weight: bold;
}

.order-items-table tfoot td {
    border-top: 2px solid #e0e0e0;
}

.total-amount {
    color: #d32f2f;
    font-size: 18px;
}

.delete-item-btn {
    color: #d32f2f;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.delete-item-btn:hover {
    color: #b71c1c;
    text-decoration: underline;
}

.order-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.no-data {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}

.group-debt-link {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .order-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .order-info-item {
        width: 100%;
    }
    
    .order-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .order-actions a {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
}

/* Create Order Page Styles */
.order-create-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 20px;
    position: relative;
}

.order-create-form {
    max-width: 500px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    box-sizing: border-box;
    padding: 30px;
    margin: 0 auto;
}

.order-create-title {
    text-align: center;
    margin-bottom: 10px;
    color: #333;
    font-size: 24px;
}

.order-create-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-style: italic;
}

.order-create-button {
    width: 100%;
    margin-top: 15px;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

/* Improve form appearance */
.mui-textfield > input:focus ~ label,
.mui-textfield > textarea:focus ~ label {
    color: #0066cc;
}

.alert.alert-info {
    max-width: 500px;
    width: 100%;
    margin-bottom: 20px;
    background-color: #e9f7fe;
    color: #0066cc;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    border-left: 4px solid #0066cc;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .order-create-form {
        max-width: 100%;
        padding: 20px;
    }
}

/* Recent Orders in Group Page */
.recent-orders-section {
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px;
}

.recent-orders-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.recent-orders-section .section-header h3 {
    font-size: 18px;
    margin: 0;
    color: #333;
}

.recent-orders-section .order-boxes {
    margin-bottom: 0;
}

/* Starry background page styles - shared between login and form pages */
.starry-page {
    position: relative;
    z-index: 1;
}

.starry-page .order-create-form {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.starry-page .order-create-title,
.starry-page .order-create-subtitle {
    color: #0a1628;
}

.starry-page .alert.alert-info {
    background-color: rgba(233, 247, 254, 0.9);
    backdrop-filter: blur(5px);
    border-left: 4px solid #0066cc;
}

/* Make sure canvas is fixed and covers the entire screen */
#starry-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
}

/* Adjust header on starry pages */
.starry-page ~ #header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

/* Instructions Page Styles */
.instructions-container {
    padding: 30px 20px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.instructions-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #0a1628;
}

.instructions-content {
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 10px;
    padding: 30px;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.instruction-section {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.instruction-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.instruction-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #0066cc;
    display: flex;
    align-items: center;
}

.instruction-section h2 .dashicons {
    margin-right: 10px;
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.instruction-section h2 .dashicons-lock {
    color: #e44d26;
}

.instruction-item {
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 3px solid #e3f2fd;
}

.instruction-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.instruction-item ol, .instruction-item ul {
    padding-left: 25px;
    margin-bottom: 15px;
}

.instruction-item li {
    margin-bottom: 5px;
    line-height: 1.5;
}

.instruction-item p {
    margin-top: 10px;
    font-style: italic;
}

.instructions-footer {
    text-align: center;
    margin-top: 30px;
}

.instructions-footer p {
    margin-bottom: 20px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .instructions-content {
        padding: 20px;
    }
    
    .instruction-section h2 {
        font-size: 20px;
    }
    
    .instruction-item h3 {
        font-size: 16px;
    }
}

/* Instructions Page Layout with Sidebar */
.instructions-layout {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.instructions-sidebar {
    flex: 0 0 250px;
    position: sticky;
    top: 30px;
    align-self: flex-start;
    max-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
}

.instructions-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow-y: auto;
    max-height: calc(100vh - 180px);
}

.instructions-menu li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.instructions-menu li:last-child {
    border-bottom: none;
}

.instructions-menu a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.instructions-menu a:hover {
    background-color: rgba(0, 102, 204, 0.05);
    color: #0066cc;
}

.instructions-menu a.active {
    background-color: rgba(0, 102, 204, 0.1);
    color: #0066cc;
    border-left-color: #0066cc;
    font-weight: bold;
}

.instructions-content {
    flex: 1;
    min-width: 0; /* Ensures flex items don't overflow */
}

.back-home-link {
    margin-top: auto;
    text-align: center;
}

.back-home-link .mui-btn {
    width: 100%;
}

/* Responsive adjustments for instructions page */
@media (max-width: 992px) {
    .instructions-layout {
        flex-direction: column;
    }
    
    .instructions-sidebar {
        flex: 0 0 auto;
        position: relative;
        top: 0;
        margin-bottom: 20px;
        max-height: none;
    }
    
    .instructions-menu {
        display: flex;
        flex-wrap: wrap;
        max-height: none;
        padding: 10px;
    }
    
    .instructions-menu li {
        border-bottom: none;
        margin-right: 5px;
        margin-bottom: 5px;
    }
    
    .instructions-menu a {
        padding: 8px 12px;
        border-left: none;
        border-radius: 20px;
        font-size: 14px;
    }
    
    .instructions-menu a.active {
        background-color: #0066cc;
        color: white;
        border-left: none;
    }
    
    .back-home-link {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .instructions-menu {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
    }
    
    .instructions-menu li {
        display: inline-block;
    }
}

/* Update for existing instruction styles to work with new layout */
.instructions-container {
    max-width: 1140px;
}

/* Avatar upload page styles */
.avatar-preview {
    text-align: center;
    margin-bottom: 25px;
}

.avatar-preview img {
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border: 3px solid white;
}

.alert-error {
    background-color: #ffebee;
    color: #d32f2f;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

.alert-success {
    background-color: #e8f5e9;
    color: #388e3c;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

input[type="file"] {
    border: 1px solid #ddd;
    padding: 10px;
    width: 100%;
    border-radius: 4px;
    background-color: #f9f9f9;
}

/* Register link in login form */
.register-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.register-link a {
    color: #0066cc;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Payment Select Styling */
.payment-user-field {
    margin-bottom: 20px;
}

.payment-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230066cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.payment-select:hover {
    border-color: #0066cc;
}

.payment-select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

.payment-select option {
    padding: 10px;
    font-size: 16px;
}

/* Welcome avatar styling */
.welcome-avatar {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

.home-welcome .user-avatar-small {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Delete Order Button */
.delete-order-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px dashed #eee;
}

.delete-order-btn {
    display: inline-block;
    color: #d32f2f;
    font-size: 16px;
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.delete-order-btn:hover {
    color: #b71c1c;
    text-decoration: underline;
}

/* 404 Error Page Styles */
.error-404-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
    color: white;
}

.error-404-title {
    font-size: 150px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
}

.error-404-description {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 2;
}

.error-404-button {
    display: inline-block;
    background-color: rgba(0, 102, 204, 0.8);
    color: white;
    font-size: 18px;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.error-404-button:hover {
    background-color: rgba(0, 102, 204, 1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
    text-decoration: none;
    color: white;
}

.error-404-container #starry-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* QR Code Page Styles */
.qr-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    backdrop-filter: blur(5px);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.qr-info {
    margin-bottom: 20px;
    text-align: left;
}

.qr-image img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border: 5px solid white;
    border-radius: 8px;
}

.qr-instructions {
    margin-top: 20px;
    font-style: italic;
}

.alert {
    background: #ffe6e6;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    color: #cc0000;
}

.back-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Responsive adjustments for QR page */
@media (max-width: 768px) {
    .qr-container {
        max-width: 100%;
        margin: 10px;
    }
    
    .back-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .back-buttons a {
        width: 100%;
        text-align: center;
    }
}

/* Payment Notification */
.payment-notification {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.notification-content {
    display: flex;
    align-items: center;
}

.notification-icon {
    margin-right: 15px;
    color: #ff9800;
    font-size: 24px;
}

.notification-text {
    font-size: 16px;
    color: #856404;
}

.notification-action {
    background-color: #ffc107;
    color: #212529;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s;
}

.notification-action:hover {
    background-color: #e0a800;
    color: #212529;
    text-decoration: none;
}