﻿/* bottom-sheet.css */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    
}

    .overlay.active {
        opacity: 1;
        pointer-events: all;
    }

.bottom-sheet {
    background: #fff;
    width: 100%;
    /*max-width: 480px;*/
    max-width: 100%;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 24px 16px;
    transform: translateY(100%);
    transition: transform 0.35s ease-out;
    text-align: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
}

.overlay.active .bottom-sheet {
    transform: translateY(0);
}

.bottom-sheet .icon {
    font-size: 46px;
    margin-bottom: 12px;
    color: #28a745 !important;
}

.bottom-sheet .title {
  /*  font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;*/

    font-size: 1.5em; 
    font-weight: bold; 
    margin-bottom: 4px;
    color: #222; /* đen nhạt dễ nhìn */
}

.bottom-sheet .subtitle {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
    font-weight: bold;
}

.bottom-sheet .actions {
    display: flex;
    justify-content: space-evenly;
    flex-direction: column; /* sắp xếp theo cột */
    gap: 18px; /* khoảng cách giữa 2 nút */
    width: 100%;
}

.btn {
    padding: 10px 24px;
    border-radius: 24px;
    /*font-weight: 500;*/
    font-size: 14px;
    cursor: pointer;
    border: none;
    width: 100% !important;
    transition: background 0.2s ease;
}

.btn-cancel {
    background: white !important;
    color: #666666 !important;
    border: 1px solid #e0e0e0 !important;
    font-size: 14px !important;
    font-weight: 100;
}

    .btn-cancel:hover {
        background: #d1d5db;
    }

.btn-ok {
    background: #2E6DA4;
    color: white;
    font-size: 14px !important;
    font-weight: 100;
}

    .btn-ok:hover {
        background: #318fe5;
    }



.action-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*border: 1px solid #eee;*/
    border-radius: 10px;
}

.action-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-logo {
    width: 36px;
    height: 36px;
}

.action-title {
    font-weight: 500;
    font-size: 14px;
    flex-shrink: 0;
    text-align: left;
    color: #4d4d4d;
}

.action-desc {
    color: #999;
    font-size: 14px;
    text-align: left;
}

.bottom-sheet .btn-outline {
    background: #fff;
    border: 1px solid #ccc;
    color: #555;
    float: left;
    width: 35% !important;
    font-size: 14px;
    font-weight: 400;
}

.btn-primary {
    /* border-radius: 12px !important; */
    background: #00a651;
    color: white;
    float: left;
    width: 35% !important;
    background-color: #00a651 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}



.icon-bell {
    animation: ring 1s ease-in-out infinite;
    transform-origin: top center;
    display: inline-block;
}

/* Tạo hiệu ứng rung */
@keyframes ring {
    0% {
        transform: rotate(0);
    }

    10% {
        transform: rotate(10deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    30% {
        transform: rotate(6deg);
    }

    40% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(2deg);
    }

    60%, 100% {
        transform: rotate(0);
    }
}

/* Mobile nhỏ */
@media (min-width: 360px) {
    .bottom-sheet {
        padding: 28px 12px 30px;
    }

    .action-logo {
        width: 32px;
        height: 32px;
    }

    .action-desc {
        font-size: 11px;
    }

    .btn-outline {
        font-size: 12px;
    }

    .btn-primary {
        /* border-radius: 12px !important; */
        background: #00a651;
        color: white;
        float: left;
        width: 35% !important;
        background-color: #00a651 !important;
        font-size: 12px !important;
        font-weight: 400 !important;
    }
}

/* Điện thoại phổ biến */
@media (min-width: 430px) {

    .action-desc {
        font-size: 13px;
    }

    .btn-outline {
        font-size: 14px;
    }

    .btn-primary {
        /* border-radius: 12px !important; */
        background: #00a651;
        color: white;
        float: left;
        width: 35% !important;
        background-color: #00a651 !important;
        font-size: 14px !important;
        font-weight: 400 !important;
    }
}

/* Tablet */
@media (min-width: 768px) {
    .bottom-sheet {
        max-width: 90%;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .bottom-sheet {
        max-width: 480px;
    }
}

