/* ---------- Vazirmatn via hesab-iran CDN ---------- */
@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.hesab-iran.ir/fonts/vazir/Vazir-Thin-FD.eot?#iefix') format('embedded-opentype'),
         url('https://cdn.hesab-iran.ir/fonts/vazir/Vazir-Thin-FD.woff2')    format('woff2'),
         url('https://cdn.hesab-iran.ir/fonts/vazir/Vazir-Thin-FD.woff')     format('woff'),
         url('https://cdn.hesab-iran.ir/fonts/vazir/Vazir-Thin-FD.ttf')      format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.hesab-iran.ir/fonts/vazir/Vazir-FD.eot?#iefix') format('embedded-opentype'),
         url('https://cdn.hesab-iran.ir/fonts/vazir/Vazir-FD.woff2')    format('woff2'),
         url('https://cdn.hesab-iran.ir/fonts/vazir/Vazir-FD.woff')     format('woff'),
         url('https://cdn.hesab-iran.ir/fonts/vazir/Vazir-FD.ttf')      format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.hesab-iran.ir/fonts/vazir/Vazir-Medium-FD.eot?#iefix') format('embedded-opentype'),
         url('https://cdn.hesab-iran.ir/fonts/vazir/Vazir-Medium-FD.woff2')    format('woff2'),
         url('https://cdn.hesab-iran.ir/fonts/vazir/Vazir-Medium-FD.woff')     format('woff'),
         url('https://cdn.hesab-iran.ir/fonts/vazir/Vazir-Medium-FD.ttf')      format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.hesab-iran.ir/fonts/vazir/Vazir-Bold-FD.eot?#iefix') format('embedded-opentype'),
         url('https://cdn.hesab-iran.ir/fonts/vazir/Vazir-Bold-FD.woff2')    format('woff2'),
         url('https://cdn.hesab-iran.ir/fonts/vazir/Vazir-Bold-FD.woff')     format('woff'),
         url('https://cdn.hesab-iran.ir/fonts/vazir/Vazir-Bold-FD.ttf')      format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ---------- Apply Vazirmatn everywhere in the admin ---------- */
body,
input,
button,
select,
textarea,
.btn,
table,
.admin-site-title,
#site-name,
h1, h2, h3, h4, h5, h6,
.label,
.help,
.errorlist,
.messagelist,
.paginator,
#changelist-filter h3 {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif !important;
}

/* Force Persian digits alignment-friendly direction */
body {
    font-weight: 400;
}
/* static/css/monea_colors.css */
:root, [data-theme] {
    /* Set the primary color to monea.ir's coral-pink */
    --color-primary: #ff6b72;
    --p: 255 107 114; /* For older DaisyUI v4 (RGB format) */
    --primary: #ff6b72; /* Fallback for some versions */
    
    /* Set the text on primary buttons to white for good contrast */
    --color-primary-content: #ffffff;
    
    /* Optionally, set the secondary color to match */
    --color-secondary: #ff6b72;
}
/* static/css/monea_colors.css */

/* ... your existing color variables ... */

/* Override the green save buttons with Monea's coral-pink */
input[type="submit"].default,
.button.default,
.submit-row input.default,
.submit-row a.default,
.btn-primary {
    background-color: #ff6b72 !important;
    border-color: #ff6b72 !important;
    color: #ffffff !important;
}

/* Hover state — slightly darker shade for feedback */
input[type="submit"].default:hover,
.button.default:hover,
.submit-row input.default:hover,
.submit-row a.default:hover,
.btn-primary:hover {
    background-color: #e85d64 !important;
    border-color: #e85d64 !important;
    color: #ffffff !important;
}

/* Optional: also color the "Save and add another" / "Save and continue" links */
.submit-row a.closelink,
.submit-row a {
    color: #ff6b72 !important;
}


/* static/css/monea_colors.css */

/* Override the green "Save" button (btn-success) inside submit rows */
.submit-row .btn-success,
.submit-row input.default,
.submit-row .btn.btn-success {
    background-color: #ff6b72 !important;
    border-color: #ff6b72 !important;
    color: #ffffff !important;
}

/* Hover state — slightly darker for feedback */
.submit-row .btn-success:hover,
.submit-row input.default:hover,
.submit-row .btn.btn-success:hover {
    background-color: #e85d64 !important;
    border-color: #e85d64 !important;
    color: #ffffff !important;
}

/* Focus/active state (click) */
.submit-row .btn-success:focus,
.submit-row .btn-success:active {
    background-color: #d94f56 !important;
    border-color: #d94f56 !important;
}


.submit-row .btn-success {
    --btn-color: #ff6b72 !important;
    --btn-bg: #ff6b72 !important;
}


.submit-row .btn-success {
    --btn-color: #ff6b72 !important;
    --btn-bg: #ff6b72 !important;
    --btn-border: #ff6b72 !important;
    --btn-fg: #ffffff !important;
}


@layer utilities {
  @layer daisyui.l1.l2.l3 {
    @supports (color:color-mix(in lab, red, red)) {
      .btn:active:not(.btn-active) {
        --btn-border: color-mix(in oklab,var(--btn-color,var(--color-base-200)),#000 7%);
      }
    }
  }
}

.btn-success {
    --btn-color: #ff6b72 !important;
    --btn-fg: #fff !important;
}


@media print {
    /* Hide everything except the table */
    #header, #nav-sidebar, #changelist-filter, .object-tools, 
    #changelist-search, .paginator, #toolbar, .actions,
    #changelist-form .submit-row, .breadcrumbs, footer {
        display: none !important;
    }
    
    #content {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    #changelist table {
        width: 100% !important;
        font-size: 10pt;
        border-collapse: collapse;
    }
    
    #changelist table th,
    #changelist table td {
        border: 1px solid #000 !important;
        padding: 4px 8px !important;
    }
    
    /* Hide the checkbox column */
    #changelist table .action-checkbox-column,
    #changelist table .action-checkbox {
        display: none !important;
    }
}


@media print {
    /* Make editable inputs look like plain text */
    #changelist table tbody input,
    #changelist table tbody select {
        border: none !important;
        background: transparent !important;
        color: #000 !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        text-align: right !important;
        font-size: 10pt !important;
        font-family: inherit !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: textfield !important;
    }

    /* Hide number input spinners */
    #changelist table tbody input::-webkit-outer-spin-button,
    #changelist table tbody input::-webkit-inner-spin-button {
        -webkit-appearance: none !important;
        margin: 0 !important;
    }

    /* Hide "Save" row that appears at the bottom of list_editable */
    #changelist-form .submit-row {
        display: none !important;
    }
}


/* Convert editable inputs to flat text on print */
#changelist table tbody input,
#changelist table tbody select {
    border: none !important;
    background: transparent !important;
    color: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    text-align: right !important;
    font-size: 10pt !important;
    font-family: inherit !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
}

/* Hide number-input spinner arrows */
#changelist table tbody input::-webkit-outer-spin-button,
#changelist table tbody input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Hide the "Save" bar that list_editable adds at the bottom */
#changelist-form .submit-row {
    display: none !important;
}

/* Hide the "Save" button injected above the table by list_editable */
#changelist-form > div.submit-row,
#changelist-form .actions + .submit-row {
    display: none !important;
}



/* Hide the "Made with ❤ on GitHub" footer in the sidebar */
a[href="https://github.com/hypy13/django-daisy"] {
    display: none !important;
}
