:root {
    --color-1: #F9F8F6;
    --color-2: #EFE9E3;
    --color-3: #D9CFC7;
    --color-4: #C9B59C;
    --primary-color: #264E70; /*#30475E;*/
    --secondary-color: #10b981;
    --danger-color: #dc6b4a;
    --warning-color: #f59e0b;
    --dark-color: #5a4a3a;
    --background-color: #e5ecfa;
    --light-gray: #F9F8F6;
    --border-radius: 20px;
}

body {
    font-family: 'Anuphan',sans-serif;
    font-size: 14px;
    background-color: var(--background-color);
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

i {
    font-size: 20px;
}

.card {
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    background-color: #fff !important;
    border-radius: 20px;
}

.modal-content {    
    border-radius: var(--border-radius);    
}

.cursor-pointer {
    cursor: pointer;
}

.breadcrumb-1 {
    display: flex;
    justify-content: flex-start;
    text-align: center;
    gap: 15px;
    margin-bottom: 10px;
}

/* add button */
.btn-add {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: 0.2s;
    position: fixed;
    bottom: 80px;
    right: 5px;
    transform: translateX(-50%);
    z-index: 9999;
    padding-bottom: 5px;
}

    .btn-add:hover {
        color: #d32f2f;
        box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    }

/* navy button */
.btn-navy {
    --bs-btn-color: #fff;
    --bs-btn-bg: #264E70;
    --bs-btn-border-color: #001f3f;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #003366;
    --bs-btn-hover-border-color: #002a52;
    --bs-btn-focus-shadow-rgb: 0,31,63;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #002a52;
    --bs-btn-active-border-color: #00213d;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #001f3f;
    --bs-btn-disabled-border-color: #001f3f;
}

/* .btn-add:active {
        transform: scale(0.95);
    }*/


/* social button */
.social-container {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.social-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    padding-top: 5px;
}

    .social-icon:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .social-icon i {
        font-size: 24px;
    }

    .social-icon.facebook:hover {
        background: #1877f2;
        color: white;
    }

    .social-icon.github:hover {
        background: #333;
        color: white;
    }

    .social-icon.instagram:hover {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        color: white;
    }

    .social-icon.linkedin:hover {
        background: #0077b5;
        color: white;
    }

    .social-icon.twitter:hover {
        background: #000;
        color: white;
    }

/* form-control */
.form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: unset;
}

/* swicher */
.style-switcher {
    display: inline-flex;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 3px;
    gap: 4px;
    background: #fff;
}

.style-switcher-button {
    display: flex;
    flex: 1 1;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 50px;
    color: #495057;
    padding: 0 .75rem;
    height: 1.75rem;
    line-height: 1.75rem;
    font-size: .875rem;
    text-decoration: none;
}

    .style-switcher-button.active, .style-switcher-button:hover {
        background: #264E70;
        color: #fff;
    }

/* filter button */
.fillter-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.filter-link {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 15px;
    background-color: #fafafa;
    text-align: center;
    width: 100%;
}

    .filter-link:hover {
        background-color: #e5ecfa;
    }

    .filter-link.active {
        background-color: #e5ecfa;
        background-color: var(--primary-color);
        color: #fff;
    }

    .filter-link:active {
        background-color: #e5ecfa;
    }

/* dropdown item */
.dropdown-item:active {
    background-color: #fafafa;
    color: #000;
}


/* items box */
.trans-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 5px;
    border-radius: 5px;
}

    .trans-item:hover {
        background-color: #fafafa;
    }

/* input icon */
.input-icon-left {
    position: relative;
    /*display: inline-block;*/
}

    .input-icon-left i {
        position: absolute;
        display: inline-block;
        left: 10px;
        top: 55%;
        transform: translateY(-50%);
        color: #888;
        font-size: 16px;
    }

    .input-icon-left input {
        padding-left: 35px;
    }

.input-icon-right {
    position: relative;
    /*display: inline-block;*/
}

    .input-icon-right i {
        position: absolute;
        display: inline-block;
        right: 10px;
        top: 55%;
        transform: translateY(-50%);
        color: #888;
        font-size: 16px;
    }

    .input-icon-right input {
        padding-right: 35px;
    }


/* checkbox */
[type=checkbox] {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-color);    
    vertical-align: middle;
    -webkit-appearance: none;
    background: none;
    border: 0;
    outline: 0;
    flex-grow: 0;
    border-radius: 50%;
    background-color: #FFFFFF;
    transition: background 300ms;
    cursor: pointer;
}


    /* Pseudo element for check styling */
    [type=checkbox]::before {
        content: "";
        color: transparent;
        display: block;
        width: inherit;
        height: inherit;
        border-radius: inherit;
        border: 0;
        background-color: transparent;
        background-size: contain;
        box-shadow: inset 0 0 0 1px #CCD3D8;
    }


    /* Checked */
    [type=checkbox]:checked {
        background-color: currentcolor;
    }

        [type=checkbox]:checked::before {
            box-shadow: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E %3Cpath d='M15.88 8.29L10 14.17l-1.88-1.88a.996.996 0 1 0-1.41 1.41l2.59 2.59c.39.39 1.02.39 1.41 0L17.3 9.7a.996.996 0 0 0 0-1.41c-.39-.39-1.03-.39-1.42 0z' fill='%23fff'/%3E %3C/svg%3E");
        }


    /* Disabled */
    [type=checkbox]:disabled {
        background-color: #CCD3D8;
        opacity: 0.84;
        cursor: not-allowed;
    }

    /* IE */
    [type=checkbox]::-ms-check {
        content: "";
        color: transparent;
        display: block;
        width: inherit;
        height: inherit;
        border-radius: inherit;
        border: 0;
        background-color: transparent;
        background-size: contain;
        box-shadow: inset 0 0 0 1px #CCD3D8;
    }

    [type=checkbox]:checked::-ms-check {
        box-shadow: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E %3Cpath d='M15.88 8.29L10 14.17l-1.88-1.88a.996.996 0 1 0-1.41 1.41l2.59 2.59c.39.39 1.02.39 1.41 0L17.3 9.7a.996.996 0 0 0 0-1.41c-.39-.39-1.03-.39-1.42 0z' fill='%23fff'/%3E %3C/svg%3E");
    }

/* Disabled */
.upload-img {
    border: 2px dotted #ccc;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* category box */
.cate-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 15px;
    justify-items: stretch;
    align-items: stretch;
}

.cate-app {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

    .cate-app p {
        margin-bottom: 0;
    }

    .cate-app:hover {
        background-color: #fafafa;
    }

    .cate-app.active {
        background-color: #264E70;
        color: #fff;
    }

/* category box */
.category-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

    .category-item:hover {
        background-color: #e9ecef;
    }

.category-name {
    flex: 1;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.category-amount {
    font-weight: 600;
    color: #212529;
    margin-right: 12px;
    font-size: 14px;
}

.category-percentage {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    min-width: 60px;
    text-align: center;
}

.tag-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 10px;
    justify-items: stretch;
    align-items: stretch;
    padding: 10px 15px;
}

.tag-item {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    background-color: #fafafa;

    white-space: nowrap;
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
}

    .tag-item:hover {
        color: #fff !important;
        background-color: var(--primary-color);
    }

/* Resolution */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (min-width: 430px) {
    .btn-add {
        right: 20px;
    }
}