/**
 * File: schedule-type-card.css
 * Deskripsi: CSS untuk tampilan kartu jadwal kerja
 * Versi: 3.0 - Redesign dengan tampilan yang lebih elegan dan profesional
 */

/* Styling untuk kartu */
.card {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 12px rgba(85, 110, 230, 0.08);
    height: 100%;
    margin-bottom: 24px;
    background-color: #fff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(85, 110, 230, 0.15);
    border-color: rgba(85, 110, 230, 0.1);
}

.card .card-body {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Styling untuk avatar */
.avatar-sm {
    height: 3rem;
    width: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.avatar-title {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.avatar-md {
    height: 4.5rem;
    width: 4.5rem;
}

/* Styling untuk dropdown menu */
.dropdown-menu {
    min-width: 12rem;
    padding: 0.5rem 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    animation: dropdown-animation 0.2s ease-out;
}

@keyframes dropdown-animation {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 0.6rem 1.2rem;
    font-weight: 400;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(85, 110, 230, 0.08);
    color: #556ee6;
}

.dropdown-item i {
    margin-right: 0.5rem;
    font-size: 1rem;
    vertical-align: middle;
}

.dropdown-divider {
    margin: 0.3rem 0;
    opacity: 0.5;
}

/* Styling untuk search box */
.search-box {
    position: relative;
}

.search-box .form-control {
    padding-left: 40px;
    height: 40px;
    border-radius: 30px;
    box-shadow: none;
    transition: all 0.3s ease;
}

.search-box .form-control:focus {
    border-color: #556ee6;
    box-shadow: 0 0 0 0.15rem rgba(85, 110, 230, 0.25);
}

.search-box .search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #74788d;
    transition: all 0.3s ease;
}

.search-box .form-control:focus+.search-icon {
    color: #556ee6;
}

.search-box .form-control.searching {
    background-position: right 10px center;
    background-repeat: no-repeat;
    transition: background 0.3s ease;
}

/* Styling untuk badges dan status */
.badge {
    padding: 0.4em 0.8em;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-radius: 30px;
}

/* Styling untuk tombol */
.btn {
    border-radius: 0.4rem;
    padding: 0.47rem 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    box-shadow: 0 2px 6px rgba(85, 110, 230, 0.35);
}

.btn:hover {
    transform: translateY(-1px);
}

/* Styling untuk tombol aksi pada kartu */
.card-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    margin-left: 5px;
    background-color: #fff;
    border: 1px solid #eff2f7;
    color: #495057;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-view {
    color: #50a5f1;
    border-color: rgba(80, 165, 241, 0.3);
}

.btn-view:hover {
    background-color: rgba(80, 165, 241, 0.1);
}

.btn-edit {
    color: #556ee6;
    border-color: rgba(85, 110, 230, 0.3);
}

.btn-edit:hover {
    background-color: rgba(85, 110, 230, 0.1);
}

.btn-delete {
    color: #f46a6a;
    border-color: rgba(244, 106, 106, 0.3);
}

.btn-delete:hover {
    background-color: rgba(244, 106, 106, 0.1);
}

/* Styling untuk modal */
.modal-content {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    background-color: #f8f9fa;
}

/* Styling untuk SweetAlert2 custom */
.swal2-popup {
    border-radius: 0.75rem !important;
    padding: 2rem !important;
}

.swal2-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
}

.swal2-content {
    font-size: 1rem !important;
}

.swal2-styled.swal2-confirm {
    border-radius: 0.4rem !important;
    font-weight: 500 !important;
}

/* Styling untuk empty state dan loading */
.avatar-title.rounded-circle {
    border-radius: 50%;
}

/* Animasi untuk kartu */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(85, 110, 230, 0.08);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 16px rgba(85, 110, 230, 0.12);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(85, 110, 230, 0.08);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.fadeInUp {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

/* Efek hover pada kartu */
.card:hover .card-action-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Efek pulse pada tombol tambah */
#btnAdd:hover,
#btnAddEmpty:hover {
    animation: pulse 1s infinite;
}

/* Efek shimmer pada badge */
.badge.bg-soft-success {
    background: linear-gradient(90deg,
            rgba(52, 195, 143, 0.18) 25%,
            rgba(52, 195, 143, 0.25) 50%,
            rgba(52, 195, 143, 0.18) 75%) !important;
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Efek hover pada avatar */
.avatar-sm:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Efek hover pada judul kartu */
.card h5 a:hover {
    color: #556ee6 !important;
    transition: color 0.3s ease;
}