/* style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #120170;
    color: #333;
    padding-bottom: 20px;
}

#slider {
    overflow: hidden;
    margin-bottom: 20px;
}

#slider figure {
    position: relative;
    width: 500%;
    margin: 0;
    left: 0;
    animation: 10s slider infinite;
}

#slider figure img {
    float: left;
    width: 20%;
}

@keyframes slider {
    0% {
        left: 0;
    }
    20% {
        left: 0;
    }
    25% {
        left: -100%;
    }
    45% {
        left: -100%;
    }
    50% {
        left: -200%;
    }
    70% {
        left: -200%;
    }
    75% {
        left: -300%;
    }
    95% {
        left: -300%;
    }
    100% {
        left: -400%;
    }
}

.card {
    border-radius: 12px;
    background-color: #120170;
    box-shadow: 0 6px 15px rgba(255, 230, 2, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 25px;
    border: none;
    margin-top: 10px;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border-radius: 12px 12px 0 0 !important;
    font-weight: bold;
    font-size: 1.2rem;
}

.btn-primary {
    position: relative;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s;
    background: #0f0f0f;
    color: #fff;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 400%;
    height: 100%;
    background: linear-gradient(45deg, 
        #ff0000, #ff7300, #fffb00, #48ff00, 
        #00ffd5, #00eeff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400% 400%;
    z-index: -1;
    animation: glowing 8s linear infinite;
    border-radius: 50px;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: #0f0f0f;
    border-radius: 48px;
    z-index: -1;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
    transform: scale(0.98);
}

@keyframes glowing {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 400% 0;
    }
}

.btn-danger {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    border: none;
}

.total-amount {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary-color);
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    padding: 18px;
    border-radius: 12px;
    margin-top: 25px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.entry-item {
    border-left: 5px solid var(--secondary-color);
    padding: 7px 20px;
    margin-bottom: 10px;
    background-color: rgb(233, 250, 1);
    border-radius: 10px;
    transition: all 0.3s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.entry-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.modal-content {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background-color: #bf8df5;
}

.modal-header {
    background-color: #024e06;
    color: white;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 20px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fcfbfb, #f5f5f5);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.record-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.record-detail {
    flex: 1;
}

.record-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.amount-badge {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    min-width: 100px;
    text-align: center;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 15px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
    margin: 20px 0;
}

.empty-state i {
    font-size: 4rem;
    color: #bdbdbd;
    margin-bottom: 20px;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.6rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .action-buttons .btn {
        width: 100%;
    }

    .record-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .record-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 420px) {
    .header h1 {
        font-size: 1.6rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .action-buttons .btn {
        width: 100%;
    }

    .record-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .record-actions {
        width: 100%;
        justify-content: flex-end;
    }
}