.ldm-admin-public {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ldm-admin-public h1, .ldm-admin-public h2, .ldm-admin-public h3, .ldm-admin-public h4, .ldm-admin-public h5, .ldm-admin-public h6 {
    font-family: 'Lato';
    color: black;
}

.ldm-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 30px;
}

.ldm-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    transition: all 0.3s;
    margin: 0px;
    line-height: 1;
    min-height: unset;
    text-transform: capitalize;
    font-weight: bold;
}

.ldm-tab:hover {
    color: #4e7951;
}

.ldm-tab.active {
    color: #4e7951;
    border-bottom-color: #4e7951;
}

.ldm-tab-content {
    display: none;
    padding: 20px 0;
}

.ldm-tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.form-group input, .form-group select {
    width: 100% !important;
    max-width: 400px !important;
    padding: 8px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
}

.form-group input:read-only {
    background-color: #f5f5f5;
}

.button-primary {
    background: #4e7951;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.button-primary:hover {
    background: #263927;
}

.button-secondary {
    background: #72777c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin-left: 10px;
}

.button-secondary:hover {
    background: #50575e;
}

.ldm-admin-public .button-small {
    background-color: #f1f1f1;
    border-radius: 5px;
}

.button-small {
    padding: 4px 8px;
    font-size: 12px;
    margin-right: 5px;
}

.ldm-locations-list,
.ldm-gifts-list {
    margin-top: 40px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    padding-left: 10px !important;
}

table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

table tr:hover {
    background-color: #f5f5f5;
}

code {
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.filter-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.filter-section label {
    margin-right: 10px;
    font-weight: 600;
}

.filter-section select {
    width: 250px;
}

/* Modal */
.ldm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.ldm-modal.active {
    display: flex;
}

.ldm-modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.ldm-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.ldm-close:hover {
    color: #000;
}

#qr-code-container {
    text-align: center;
    margin: 20px 0;
}

#qr-code-container img {
    max-width: 200px;
    height: auto;
}

.shortcode-info {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.shortcode-info p {
    margin: 10px 0;
    font-size: 15px;
}

#direct-url {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    background: #f5f5f5;
    border: 1px solid #ddd;
}

.ldm-admin-public h1 {
    font-size: 30px;
    font-weight: 600;
}

.ldm-admin-public h2 {
    font-size: 20px;
    font-weight: 600;
}

.ldm-tab:focus {
    outline-width: 0px !important;
}

.filter-section select {
    width: 250px;
    height: 31px;
}

/* Snackbar/Notification Styles */
.ldm-snackbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #323232;
    color: white;
    padding: 14px 24px;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2), 0 3px 10px rgba(0,0,0,0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    max-width: 500px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.ldm-snackbar.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.ldm-snackbar-success {
    background: #4caf50;
}

.ldm-snackbar-error {
    background: #f44336;
}

.ldm-snackbar-warning {
    background: #ff9800;
}

.ldm-snackbar-info {
    background: #2196f3;
}

.ldm-snackbar-message {
    flex: 1;
    margin-right: 15px;
    font-size: 14px;
}

.ldm-snackbar-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.ldm-snackbar-close:hover {
    opacity: 1;
}

/* Loading States */
.ldm-ajax-loading .button-small[disabled],
.ldm-ajax-loading .button-primary[disabled] {
    position: relative;
    color: transparent !important;
}

.ldm-ajax-loading .button-small[disabled]:after,
.ldm-ajax-loading .button-primary[disabled]:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ldm-spin 0.8s linear infinite;
}

@keyframes ldm-spin {
    to { transform: rotate(360deg); }
}


/* Image Upload */
.image-upload-container {
    margin-top: 10px;
}

.image-preview {
    width: 180px;
    height: 180px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f9fafb;
    margin-bottom: 10px;
    position: relative;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-placeholder {
    text-align: center;
    color: #999;
}

.image-placeholder .dashicons {
    font-size: 40px;
    margin-bottom: 27px;
    width: 40px;
}

.image-placeholder p {
    margin: 0;
    font-weight: 600;
    color: black;
}

.image-placeholder small {
    font-size: 11px;
    color: black;
}

.image-upload-controls {
    display: flex;
    gap: 10px;
}

button#upload-gift-image {
    background-color: #148bcc;
    color: white;
    border-radius: 5px;
}

span.dashicons.dashicons-upload {
    margin-top: 8px;
}

.image-overlay{
    width: 30px;
    height: 30px;
    position: absolute;
    z-index: 10;
    background-color: white;
    right: 0;
    top: 0;
    border-radius: 50%;
    padding: 5px;
}

span.dashicons.dashicons-no {
    margin-top: 9px;
}
td.gift-image-cell {
    width: 95px;
}
td.gift-image-cell img{
    border-radius: 5px;
}
.gift-image.no-image span {
    font-size: 36px;
    transform: translateY(-10px);
    margin-left: 16px;
}

@media (max-width: 600px) {
    .ldm-snackbar {
        min-width: 280px;
        max-width: 90%;
        left: 50%;
        transform: translateX(-50%) translateY(100px);
    }
    
    .ldm-snackbar.show {
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ldm-tab {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
    
    .form-group input,
    .form-group select {
        max-width: 100%;
    }
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-controls select {
        min-width: auto;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .action-btn {
        width: 100%;
    }
}