/* --- CSS VARIABLES FOR EASY THEMING --- */
:root {
    --primary-teal: #0E665E;
    --primary-dark: #00191d;
    --accent-cyan: #0dcefd;
    --header-gradient: linear-gradient(135deg, #0E665E 0%, #1a2a6c 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* =========================================
   eZe Smart Menu Styles (Frontend)
   ========================================= */

/* Scope styles to the plugin container */
.eze-smart-menu-finance {
    /* Modern dark gradient with noise/texture support if needed */
    background: radial-gradient(circle at center, #134e4a, #00191d);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.eze-smart-menu-finance .menu-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 0;
}

/* Individual menu section - Glassmorphism Card */
.eze-smart-menu-finance .menu-box {
    flex: 1 1 200px;
    min-width: 200px;
    max-width: 260px;
    padding: 0; /* Padding moved to inner content for header flushness */
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: var(--glass-bg);
    backdrop-filter: blur(5px); /* Blurs background behind the card */
    -webkit-backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Ensures header doesn't spill out */
}

.eze-smart-menu-finance .menu-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(255,255,255,0.2);
}

/* Header label styles */
.eze-smart-menu-finance .menu-header {
    font-size: 12px;
    letter-spacing: 0.05em;
    padding: 12px 15px;
    font-weight: 700;
    text-align: center;
    /* Replaced clashing red/yellow gradient with harmonious teal/blue */
    background: var(--header-gradient);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Menu styles */
.eze-smart-menu-finance .menu-list {
    list-style-type: none;
    padding: 15px;
    margin: 0;
}

.eze-smart-menu-finance .menu-list li {
    display: block;
    margin-bottom: 4px;
}

/* Smooth link styles */
.eze-smart-menu-finance .smooth-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.eze-smart-menu-finance .smooth-link i {
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

/* Hover Effects */
.eze-smart-menu-finance .smooth-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(3px); /* Subtle nudge right instead of scale */
}

.eze-smart-menu-finance .smooth-link:hover i {
    color: var(--accent-cyan);
    opacity: 1;
}

@media (max-width: 600px) {
    .eze-smart-menu-finance .menu-box {
        flex-basis: 100%;
        max-width: 100%;
    }
}

/* =========================================
   ADMIN MANAGER STYLES (Backend)
   ========================================= */

.esmf-manager-wrapper {
    background: #f8fafc; /* Lighter, cleaner gray */
    padding: 30px;
    border-radius: 8px;
    max-width: 1100px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #334155;
}

.esmf-manager-wrapper h2, 
.esmf-manager-wrapper h3 {
    margin-top: 0;
    color: #1e293b;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Alerts */
.esmf-success, 
.esmf-error {
    padding: 12px 16px;
    margin-bottom: 25px;
    border-radius: 6px;
    font-size: 14px;
    border: none;
    display: flex;
    align-items: center;
}

.esmf-success {
    background: #dcfce7;
    color: #166534;
}

.esmf-error {
    background: #fee2e2;
    color: #991b1b;
}

/* Grid for the two forms */
.esmf-actions-grid {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Modern Card Style for Forms */
.esmf-form-container,
.esmf-import-container {
    background: #fff;
    padding: 25px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    flex: 2;
    min-width: 300px;
    transition: box-shadow 0.2s;
}

.esmf-form-container:hover,
.esmf-import-container:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.esmf-form-container {
    border-left: 4px solid var(--primary-teal);
}

.esmf-import-container {
    flex: 1;
    border-left: 4px solid #10b981;
    min-width: 250px;
}

/* Form Fields */
.esmf-field-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.esmf-field {
    flex: 1;
}

.esmf-field-small {
    flex: 0 0 90px;
}

.esmf-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    color: #475569;
}

.esmf-field input[type="text"], 
.esmf-field input[type="number"],
.esmf-field input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box; /* Ensures padding doesn't break width */
}

.esmf-field input:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(14, 102, 94, 0.1);
}

/* Upload Box Specifics */
.esmf-upload-box {
    background: #f0fdf4;
    padding: 20px;
    border: 2px dashed #86efac;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    color: #166534;
}

.esmf-help-details {
    font-size: 0.85em;
    color: #64748b;
    margin-bottom: 15px;
    line-height: 1.5;
}

.esmf-help-details summary {
    cursor: pointer;
    color: #0284c7;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Submit Buttons Area */
.esmf-submit-row {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

/* Table Styles - Clean & Flat */
.esmf-list-container {
    margin-top: 40px;
}

.esmf-table {
    width: 100%;
    border-collapse: separate; /* Allows border radius */
    border-spacing: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    overflow: hidden; /* Clips corners */
}

.esmf-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.esmf-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #334155;
    vertical-align: middle;
}

.esmf-table tr:last-child td {
    border-bottom: none;
}

.esmf-table tr:hover td {
    background: #f8fafc;
}

/* Badges and Buttons */
.esmf-badge {
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    color: #475569;
    border: 1px solid #e2e8f0;
    text-transform: uppercase;
}

/* Standard button styling for links/buttons inside table */
button, input[type="submit"] {
    cursor: pointer;
}

.delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid #fca5a5 !important;
    background: #fff;
    color: #dc2626 !important;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.delete-btn:hover {
    background: #dc2626 !important;
    color: #fff !important;
    border-color: #dc2626 !important;
}