/* AMOE Tracker Styles */

.amoe-tracker-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    left: 100px;
    width: calc(100% - 250px);
    box-sizing: border-box; /* Ensure padding is included in width calculation */
}

/* Prevent shifting below 1200px */
@media screen and (max-width: 1200px) {
    .amoe-tracker-container {
        width: 100%;
        left: 0;
        margin: 20px auto;
        max-width: none;
    }
    
    /* Ensure no shifting when sidebar is open below 1200px */
    body.sidebar-open .amoe-tracker-container {
        left: 0;
        width: 100%;
    }
}

/* Handle sidebar-open state above 1200px */
@media screen and (max-width: 1900px) and (min-width: 1201px) {
    .amoe-tracker-container {
        left: 0;
        width: 85%;
        max-width: 900px;
        margin: 20px auto;
    }
    
    body.sidebar-open .amoe-tracker-container {
        left: 125px;
        width: calc(100% - 250px);
        margin: 20px auto;
    }
}

/* Desktop layout above 1900px - sidebar always visible */
@media screen and (min-width: 1901px) {
    .amoe-tracker-container {
        left: 125px;
        width: calc(100% - 250px);
        margin: 20px auto;
    }
}

/* Tablet and mobile responsive design for AMOE tracker */
@media screen and (max-width: 1024px) {
    .amoe-dates-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .amoe-date-display {
        min-width: 55px;
        max-width: 55px;
        font-size: 10px;
    }

    .amoe-dollar-sign {
        font-size: 9px;
        left: 5px;
    }

    .amoe-amount-arrows {
        right: 1px;
    }

    .amoe-arrow-btn {
        width: 10px;
        height: 8px;
        font-size: 7px;
    }

    .amoe-date-amount-input {
        width: 45px;
        height: 22px;
        font-size: 9px;
        padding: 3px 12px 3px 14px;
    }

}

@media screen and (max-width: 768px) {
    .amoe-tracker-container {
        padding: 15px;
        margin: 10px;
    }

    .amoe-dates-list {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .amoe-date-received-pair {
        padding: 4px 6px;
        min-height: 28px;
        font-size: 11px;
        gap: 3px;
    }

    .amoe-date-display {
        min-width: 50px;
        max-width: 50px;
        font-size: 10px;
    }

    .amoe-dollar-sign {
        font-size: 8px;
        left: 4px;
    }

    .amoe-amount-arrows {
        right: 1px;
    }

    .amoe-arrow-btn {
        width: 9px;
        height: 7px;
        font-size: 6px;
    }

    .amoe-date-amount-input {
        width: 40px;
        height: 20px;
        padding: 2px 10px 2px 12px;
        font-size: 9px;
    }


    .amoe-received-checkbox {
        width: 12px;
        height: 12px;
    }

    .amoe-remove-date-btn {
        width: 14px;
        height: 14px;
        background-size: 8px;
        margin-left: 1px;
    }

    .amoe-add-date-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .amoe-tracker-container {
        padding: 10px;
        margin: 5px;
    }

    .amoe-dates-list {
        gap: 3px;
    }

    .amoe-date-received-pair {
        padding: 3px 4px;
        min-height: 24px;
        font-size: 10px;
        gap: 2px;
    }

    .amoe-date-display {
        min-width: 45px;
        max-width: 45px;
        font-size: 9px;
    }

    .amoe-dollar-sign {
        font-size: 7px;
        left: 3px;
    }

    .amoe-amount-arrows {
        right: 1px;
    }

    .amoe-arrow-btn {
        width: 8px;
        height: 6px;
        font-size: 5px;
    }

    .amoe-date-amount-input {
        width: 35px;
        height: 18px;
        padding: 2px 8px 2px 10px;
        font-size: 8px;
    }


    .amoe-received-checkbox {
        width: 10px;
        height: 10px;
    }

    .amoe-remove-date-btn {
        width: 12px;
        height: 12px;
        background-size: 6px;
        margin-left: 1px;
    }

    .amoe-add-date-btn {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}

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

.amoe-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.amoe-tracker-header h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Add Entry Button - Following DSM button styles */
.amoe-add-entry-btn,
.amoe-remove-received-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    color: white;
}

.amoe-add-entry-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.amoe-add-entry-btn::before,
.amoe-remove-received-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.amoe-add-entry-btn:hover::before,
.amoe-remove-received-btn:hover::before {
    left: 100%;
}

.amoe-add-entry-btn:hover,
.amoe-remove-received-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.amoe-add-entry-btn:active,
.amoe-remove-received-btn:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

/* Remove Received Button specific styling */
.amoe-remove-received-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
}

.amoe-remove-received-btn:hover {
    background: linear-gradient(135deg, #FF5252 0%, #D32F2F 100%);
    box-shadow: 0 6px 20px rgba(255, 82, 82, 0.4);
}

/* Grid Layout */
.amoe-tracker-grid {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.amoe-grid-header {
    display: grid;
    grid-template-columns: 1fr 2fr 120px;
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.amoe-grid-header > div {
    padding: 15px 12px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    padding-left: 5px;
    letter-spacing: 0.5px;
}

.amoe-grid-header > div:last-child {
    border-right: none;
}

.amoe-grid-body {
    overflow-y: visible;
    overflow-x: hidden;
}

/* Individual Entry Rows */
.amoe-entry-row {
    display: grid;
    grid-template-columns: 1fr 2fr 120px;
    gap: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

/* Hide labels on desktop */
.amoe-field-label {
    display: none;
}

/* Field groups on desktop */
.amoe-field-group {
    display: flex;
    align-items: center;
    border: none;
    padding: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 50px;
}

.amoe-field-group:last-child {
    border-right: none;
    justify-content: center;
}

.amoe-entry-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.amoe-entry-row.received {
    background: rgba(76, 175, 80, 0.05);
    opacity: 0.8;
}

/* Old div styling removed - now using amoe-field-group */

/* Form Elements */
.amoe-provider-select,
.amoe-date-input,
.amoe-amount-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.amoe-provider-select:focus,
.amoe-date-input:focus,
.amoe-amount-input:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.amoe-provider-select option {
    background: #1a1a1a;
    color: #fff;
}


.amoe-amount-input {
    width: 120px;
    padding: 6px 8px 6px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.amoe-amount-input:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.amoe-amount-input::before {
    content: '$';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    z-index: 1;
}

/* Amount Wrapper (contains dollar sign, input, and arrows) */
.amoe-amount-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

/* Custom Arrow Buttons */
.amoe-amount-arrows {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.amoe-amount-wrapper:hover .amoe-amount-arrows {
    opacity: 1;
}

.amoe-arrow-btn {
    width: 12px;
    height: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 8px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
    border-radius: 1px;
}

.amoe-arrow-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #4CAF50;
}

.amoe-arrow-btn:active {
    background: rgba(76, 175, 80, 0.3);
    transform: scale(0.95);
}

.amoe-arrow-up {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1px 1px 0 0;
}

.amoe-arrow-down {
    border-radius: 0 0 1px 1px;
}

.amoe-dollar-sign {
    position: absolute;
    left: 6px;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
    pointer-events: none;
}

/* Date Amount Input (within date pairs) */
.amoe-date-amount-input {
    width: 55px;
    height: 26px;
    padding: 4px 16px 4px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 10px;
    text-align: right;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
}

.amoe-date-amount-input:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 1px rgba(76, 175, 80, 0.3);
}


/* Date/Received Container */
.amoe-dates-received-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 40px;
    position: relative;
}

/* Add Date Container - Button positioned to the left */
.amoe-add-date-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* Dates List - Contains the actual date pairs in 3-column grid */
.amoe-dates-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    flex: 1;
    min-width: 0;
}

/* Date/Received Pair */
.amoe-date-received-pair {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
    min-height: 32px;
    box-sizing: border-box;
}

/* Date Display (replaces date input) */
.amoe-date-display {
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    min-width: 60px;
    max-width: 60px;
    text-align: center;
    flex-shrink: 0;
}

/* Date Input within pairs */
.amoe-date-received-pair .amoe-date-input {
    width: 110px;
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.amoe-date-received-pair .amoe-date-input:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* Add Date Button */
.amoe-add-date-btn {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(76, 175, 80, 0.6);
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 4px 0; /* Add some vertical margin for better centering */
}

.amoe-add-date-btn:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    transform: scale(1.1);
}

/* Remove Date Button */
.amoe-remove-date-btn {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(220, 53, 69, 0.4);
    border-radius: 50%;
    background: transparent;
    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='%23dc3545' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cline x1='18' y1='6' x2='6' y2='18'%3e%3c/line%3e%3cline x1='6' y1='6' x2='18' y2='18'%3e%3c/line%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    margin-left: 2px;
    flex-shrink: 0;
}

.amoe-date-received-pair:hover .amoe-remove-date-btn {
    opacity: 1;
}

.amoe-remove-date-btn:hover {
    background: rgba(220, 53, 69, 0.9);
    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='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cline x1='18' y1='6' x2='6' y2='18'%3e%3c/line%3e%3cline x1='6' y1='6' x2='18' y2='18'%3e%3c/line%3e%3c/svg%3e");
    border-color: #dc3545;
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

/* Checkbox Styling */
.amoe-received-checkbox {
    width: 14px;
    height: 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    flex-shrink: 0;
    margin: 0;
}

.amoe-received-checkbox:checked {
    background: #4CAF50;
    border-color: #4CAF50;
}

.amoe-received-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.amoe-received-checkbox:hover {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

/* Action buttons container */
.amoe-action-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

/* Notes Button */
.amoe-notes-btn {
    background: none;
    border: none;
    color: #4CAF50;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.amoe-notes-btn:hover {
    color: #66BB6A;
    background: rgba(76, 175, 80, 0.1);
    transform: scale(1.1);
}

.amoe-notes-btn:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* Delete Button - Following closebtn style */
.amoe-delete-btn {
    background: transparent;
    border: 1px solid rgba(220, 53, 69, 0.3);
    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='%23dc3545' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cline x1='18' y1='6' x2='6' y2='18'%3e%3c/line%3e%3cline x1='6' y1='6' x2='18' y2='18'%3e%3c/line%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.amoe-delete-btn:hover {
    background: rgba(220, 53, 69, 0.9);
    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='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cline x1='18' y1='6' x2='6' y2='18'%3e%3c/line%3e%3cline x1='6' y1='6' x2='18' y2='18'%3e%3c/line%3e%3c/svg%3e");
    border-color: #dc3545;
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.amoe-delete-btn:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* Loading State */
.amoe-tracker-loading {
    text-align: center;
    padding: 40px;
    color: #fff;
    font-size: 16px;
}

.amoe-tracker-loading p {
    margin: 0;
    opacity: 0.7;
}

/* Message State */
.amoe-tracker-message {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 15px 0;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Empty State */
.amoe-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.amoe-empty-state h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 20px;
}

.amoe-empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Responsive Design */

/* Tablet and smaller desktop */
@media (max-width: 1024px) {
    .amoe-tracker-container {
        padding: 20px;
        margin: 15px;
        width: calc(100% - 30px);
        left: 0;
    }
    
    .amoe-grid-header,
    .amoe-entry-row {
        grid-template-columns: 1fr 2fr 120px;
    }
    
    .amoe-tracker-header h2 {
        font-size: 26px;
    }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
    .amoe-tracker-container {
        padding: 15px;
        margin: 10px;
        width: calc(100% - 20px);
        left: 0;
        box-sizing: border-box;
    }
    
    .amoe-tracker-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .amoe-tracker-header h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .amoe-header-actions {
        justify-content: center;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .amoe-export-import-buttons {
        justify-content: center;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .amoe-export-btn,
    .amoe-import-btn {
        flex: 1;
        min-width: auto;
        padding: 12px 16px;
        font-size: 14px;
        max-width: 150px;
    }
    
    .amoe-add-entry-btn,
    .amoe-remove-received-btn {
        min-width: 120px;
        padding: 10px 16px;
        font-size: 14px;
        flex: 1;
        max-width: 150px;
    }
    
    /* Convert grid to stacked card layout */
    .amoe-grid-header {
        display: none; /* Hide header on mobile */
    }
    
    .amoe-entry-row {
        display: block;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 12px;
        transition: all 0.3s ease;
        max-width: 500px;
    }
    
    .amoe-entry-row:hover {
        background: rgba(255, 255, 255, 0.04);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .amoe-entry-row.received {
        background: rgba(76, 175, 80, 0.08);
        border-color: rgba(76, 175, 80, 0.2);
    }
    
    /* Remove old div styling since we're using amoe-field-group now */
    
    /* Field group styling for mobile */
    .amoe-field-group {
        display: flex;
        flex-direction: column;
        border: none;
        padding: 8px 0;
        min-height: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .amoe-field-group:last-child {
        border-bottom: none;
        padding-top: 12px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Show labels on mobile */
    .amoe-field-label {
        font-weight: 600;
        display: block !important;
        margin-bottom: 8px;
        color: #4CAF50;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        line-height: 1.2;
    }
    
    /* Special handling for received checkbox */
    .amoe-field-group[data-label="Received"] {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 12px;
    }
    
    .amoe-field-group[data-label="Received"] .amoe-field-label {
        margin-bottom: 0;
        margin-right: 0;
        flex-shrink: 0;
    }
    
    /* Special handling for actions */
    .amoe-field-group[data-label="Actions"] {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .amoe-field-group[data-label="Actions"] .amoe-field-label {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .amoe-action-buttons {
        gap: 8px;
    }
    
    /* Form elements styling for mobile */
    .amoe-provider-select,
    .amoe-date-input,
    .amoe-amount-input {
        width: 100%;
        max-width: 300px;
        padding: 10px 12px;
        font-size: 16px; /* Prevent zoom on iOS */
        border-radius: 6px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
        transition: all 0.3s ease;
    }
    
    .amoe-provider-select:focus,
    .amoe-date-input:focus,
    .amoe-amount-input:focus {
        border-color: #4CAF50;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
        outline: none;
    }
    
    /* Adjust dollar sign positioning on mobile */
    .amoe-amount-input::before {
        left: 10px;
        font-size: 16px;
    }

    .amoe-amount-input {
        padding-left: 30px;
    }
    
    /* Larger checkbox for touch */
    .amoe-received-checkbox {
        width: 24px;
        height: 24px;
        border-radius: 6px;
    }
    
    .amoe-received-checkbox:checked::after {
        font-size: 14px;
    }
    
    /* Larger action buttons for touch */
    .amoe-action-buttons {
        gap: 8px;
    }

    .amoe-notes-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 8px;
    }

    .amoe-delete-btn {
        width: 40px;
        height: 40px;
        font-size: 22px;
        border-radius: 8px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .amoe-tracker-container {
        padding: 10px;
        margin: 5px;
        width: calc(100% - 10px);
        box-sizing: border-box;
    }
    
    .amoe-tracker-header h2 {
        font-size: 22px;
    }
    
    .amoe-header-actions {
        flex-direction: row;
        width: 100%;
        gap: 6px;
    }
    
    .amoe-add-entry-btn,
    .amoe-remove-received-btn {
        flex: 1;
        min-width: auto;
        padding: 12px 14px;
        font-size: 14px;
        max-width: none;
    }
    
    .amoe-entry-row {
        padding: 10px;
        margin-bottom: 10px;
        max-width: 450px;
    }
    
    .amoe-field-group {
        padding: 6px 0;
    }
    
    .amoe-field-label {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .amoe-provider-select,
    .amoe-date-input,
    .amoe-amount-input {
        padding: 12px 10px;
        font-size: 16px;
        max-width: 280px;
    }
    
    .amoe-amount-input::before {
        left: 8px;
        font-size: 16px;
    }

    .amoe-amount-input {
        padding-left: 28px;
    }
    
    .amoe-received-checkbox {
        width: 28px;
        height: 28px;
    }
    
    .amoe-received-checkbox:checked::after {
        font-size: 16px;
    }
    
    .amoe-action-buttons {
        gap: 6px;
    }

    .amoe-notes-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .amoe-delete-btn {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }
}

/* Animation for new entries */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.amoe-entry-row.new-entry {
    animation: slideInFromTop 0.5s ease-out;
}

/* Entry Limit States */
.amoe-add-entry-btn.amoe-limit-reached {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
    cursor: not-allowed;
    opacity: 0.8;
}

.amoe-add-entry-btn.amoe-limit-reached:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
}

.amoe-add-entry-btn.amoe-limit-reached::before {
    display: none;
}

/* Flashing Animation */
@keyframes flashRed {
    0%, 100% {
        background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    }
    25% {
        background: linear-gradient(135deg, #FF4444 0%, #FF3333 100%);
        box-shadow: 0 4px 16px rgba(255, 68, 68, 0.4);
    }
    50% {
        background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    }
    75% {
        background: linear-gradient(135deg, #FF4444 0%, #FF3333 100%);
        box-shadow: 0 4px 16px rgba(255, 68, 68, 0.4);
    }
}

.amoe-add-entry-btn.amoe-flashing {
    animation: flashRed 0.5s ease-in-out 4;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
    cursor: not-allowed;
}

.amoe-add-entry-btn.amoe-flashing::before {
    display: none;
}

/* Smooth transitions for sorting */
.amoe-entry-row {
    transition: all 0.3s ease;
}

/* Focus styles for accessibility */
.amoe-provider-select:focus-visible,
.amoe-date-input:focus-visible,
.amoe-amount-input:focus-visible,
.amoe-received-checkbox:focus-visible {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}


/* Export/Import Section */
.amoe-export-import-section {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.amoe-export-import-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.amoe-export-btn,
.amoe-import-btn {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.amoe-export-btn:hover,
.amoe-import-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    transform: translateY(-1px);
}

/* Modal Styles */
.amoe-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.amoe-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}

.amoe-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

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

.amoe-modal-header h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.amoe-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amoe-modal-close:hover {
    background: rgba(255, 82, 82, 0.1);
    color: #ff5252;
}

.amoe-modal-body {
    padding: 24px;
}

.amoe-entry-info {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.amoe-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 0;
}

.amoe-info-row:last-child {
    margin-bottom: 0;
}

.amoe-info-label {
    color: #4CAF50;
    font-weight: 600;
    font-size: 14px;
}

.amoe-info-value {
    color: #fff;
    font-size: 14px;
    text-align: right;
}

.amoe-notes-section {
    margin-bottom: 16px;
}

.amoe-notes-section textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.amoe-notes-section textarea:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.amoe-notes-warning {
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.2);
    border-radius: 6px;
}

.amoe-notes-warning p {
    margin: 0;
    color: #FFB74D;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.amoe-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.amoe-save-notes-btn,
.amoe-cancel-notes-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amoe-save-notes-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.amoe-save-notes-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.amoe-cancel-notes-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.amoe-cancel-notes-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Modal animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.amoe-modal-content {
    animation: modalFadeIn 0.3s ease-out;
}

/* Additional mobile improvements */
@media (max-width: 768px) {
    /* Improve touch targets */
    .amoe-provider-select,
    .amoe-date-input,
    .amoe-amount-input {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    /* Better select styling for mobile */
    .amoe-provider-select {
        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='%23ffffff' 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;
        padding-right: 40px;
    }
    
    /* Improve empty state on mobile */
    .amoe-empty-state {
        padding: 40px 20px;
    }
    
    .amoe-empty-state h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .amoe-empty-state p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Better loading state on mobile */
    .amoe-tracker-loading {
        padding: 30px 20px;
        font-size: 15px;
    }
    
    /* Improve message styling on mobile */
    .amoe-tracker-message {
        margin: 10px 0;
        padding: 12px 15px;
        font-size: 14px;
        line-height: 1.4;
    }

    /* Modal mobile styles */
    .amoe-modal-content {
        width: 95%;
        max-width: none;
        margin: 20px;
        max-height: 90vh;
    }

    .amoe-modal-header {
        padding: 16px 20px;
    }

    .amoe-modal-header h3 {
        font-size: 18px;
    }

    .amoe-modal-body {
        padding: 20px;
    }

    .amoe-entry-info {
        padding: 12px;
        margin-bottom: 16px;
    }

    .amoe-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 12px;
    }

    .amoe-info-value {
        text-align: left;
        font-weight: 500;
    }

    .amoe-notes-section textarea {
        min-height: 100px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .amoe-notes-warning {
        padding: 10px;
        margin-bottom: 16px;
    }

    .amoe-notes-warning p {
        font-size: 12px;
    }

    .amoe-modal-footer {
        padding: 16px 20px;
        flex-direction: column-reverse;
        gap: 8px;
    }

    .amoe-save-notes-btn,
    .amoe-cancel-notes-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
    }
}

/* Extra small devices - additional optimizations */
@media (max-width: 360px) {
    .amoe-tracker-container {
        padding: 8px;
        margin: 2px;
        width: calc(100% - 4px);
        box-sizing: border-box;
    }
    
    .amoe-tracker-header h2 {
        font-size: 20px;
    }
    
    .amoe-header-actions {
        gap: 4px;
    }
    
    .amoe-add-entry-btn,
    .amoe-remove-received-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .amoe-entry-row {
        padding: 8px;
        margin-bottom: 8px;
        max-width: 400px;
    }
    
    .amoe-entry-row > div {
        padding: 5px 0;
    }
    
    /* Old pseudo-element styling removed - now using actual labels */
    
    .amoe-provider-select,
    .amoe-date-input,
    .amoe-amount-input {
        padding: 10px 8px;
        font-size: 16px;
        
        max-width: 250px;
    }
    
    .amoe-amount-input::before {
        left: 6px;
        font-size: 15px;
    }

    .amoe-amount-input {
        padding-left: 26px;
    }
}