@import url("https://fonts.googleapis.com/css2?family=Aclonica&family=Sansation:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Goldman:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Mozilla+Text:wght@200..700&display=swap");
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: 0.3s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

:root {
    --head-font: "Lexend", sans-serif;
    --super-font: "Goldman", sans-serif;
    --text-font: "Mozilla Text", sans-serif;
    --extra-font: "Sansation", sans-serif;

    --bg: white;
    --bg-dull: rgb(235, 235, 235);
    --bg-dark: rgb(210, 210, 210);

    --text: black;
    --text-dull: rgb(50, 50, 50);
    --text-faded: rgb(100, 100, 100);

    --primary: #dc143c;
    --primary-dull: rgb(160, 15, 40);

    --accent: rgb(0, 175, 220);
    --accent-dull: rgb(0, 120, 160);

    --border: rgb(200, 200, 200);

    --dark: black;
    --light: white;

    --nav-h: 65px;
    --sidebar-w: 240px;
}

body {
    font-family: var(--text-font);
    background: var(--bg);
    color: var(--text);
}

/* scroll bar */

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--border);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dull);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Responsive Guidelines */
/* In Desktop (>= 720px) <p> tags font size should be 16px */
/* In Tablet (> 450px and < 720px) <p> tags font size should be 15px */
/* In Mobile (450px) <p> tags font size should be 14px */
/* Note: Sizes are in pixels for widths */

/* For Heading tags, appropriate font size should be used, */
/* and should not be more than 24px in Mobile (except Cover Headings) */

.message-box {
    position: fixed;
    right: 16px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 300px;
}
.message {
    --color: #17a2b8;
    --duration: 4000ms;
    background: #fff;
    min-width: 280px;
    max-width: 420px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateX(36px);
    opacity: 0;
    will-change: transform, opacity;
}
.message.enter {
    animation: slideIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.message.leave {
    animation: slideOut 0.28s ease forwards;
}
@keyframes slideIn {
    from {
        transform: translateX(36px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(36px);
        opacity: 0;
    }
}

.message-cont {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 14px;
}
.message-cont i {
    color: var(--color);
    font-size: 32px;
    flex-shrink: 0;
}
.cont-para h4 {
    margin: 0 0 4px;
    font-size: 16px;
    color: #111;
}
.cont-para p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.45;
}

.message-bar {
    position: relative;
    height: 4px;
    background: #fff;
    overflow: hidden;
}
.message-bar .bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: var(--color);
    border-radius: 999px;
    animation: progress var(--duration) linear forwards;
}
@keyframes progress {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

.message-success {
    --color: #28a745;
}
.message-error {
    --color: #dc3545;
}
.message-warning {
    --color: #ffc107;
}
.message-info {
    --color: #17a2b8;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.confirm-modal.show {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 40px;
}

.confirm-modal .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.22s ease;
}
.confirm-modal.open .modal-overlay {
    opacity: 1;
}
.confirm-modal.closing .modal-overlay {
    opacity: 0;
}

.confirm-modal .modal-content {
    position: relative;
    z-index: 1;
    width: 420px;
    background: var(--light, #fff);
    color: var(--text, #111);
    border: 1px solid var(--border, #e5e5e5);
    padding: 16px 16px 14px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
    transform: translateY(-18px);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.confirm-modal.open .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.confirm-modal.closing .modal-content {
    transform: translateY(-18px);
    opacity: 0;
}

.confirm-modal .modal-content {
    display: flex;
    flex-direction: column;
    min-height: 160px;
}
.confirm-modal h3 {
    margin: 4px 4px 6px;
    font-family: var(--head-font, inherit);
}
.confirm-modal p {
    margin: 4px 4px 0;
    text-align: justify;
    color: var(--text-faded, #666);
}

.confirm-modal .modal-actions {
    margin-top: auto;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
}

.confirm-modal .btn {
    padding: 8px 18px;
    border: none;
    cursor: pointer;
    background: var(--bg-dark, #ddd);
    color: var(--dark, #000);
    transition: filter 0.15s ease, transform 0.06s ease;
}
.confirm-modal .btn:hover {
    filter: brightness(0.97);
}
.confirm-modal .btn:active {
    transform: translateY(1px);
}

.confirm-modal .btn-cancel {
    background: var(--bg-dark, #ddd);
}

.btn-confirm.neutral {
    background: var(--bg-dark, #ddd);
    color: var(--dark, #000);
}
.btn-confirm.danger {
    background: var(--primary, crimson);
    color: var(--light, #fff);
}
.btn-confirm.info {
    background: var(--accent, #00afdc);
    color: var(--light, #fff);
}
.btn-confirm.success {
    background: var(--success, #16a34a);
    color: #fff;
}

.btn-confirm.danger:hover {
    background: var(--primary-dull, rgb(160, 15, 40));
}
.btn-confirm.info:hover {
    background: var(--accent-dull, rgb(0, 120, 160));
}
.btn-confirm.success:hover {
    background: #15803d;
}
