/* Modern Enhancement CSS - Không thay đổi cấu trúc HTML */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Modern table styling */
table {
    border-collapse: collapse;
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

table thead th {
    padding: 15px;
    font-weight: 600;
    text-align: left;
}

table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
}

table tbody td {
    padding: 12px 15px;
}

/* Modern button enhancements */
button, 
.btn, 
input[type="button"],
input[type="submit"] {
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 600;
}

button:hover,
.btn:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Card enhancements */
.card,
.tile-stats {
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover,
.tile-stats:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Input enhancements */
input[type="email"] {
    box-sizing: border-box;
    width: 100%;
    height: calc(3em + 2px);
    margin: 0px 0 1em;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

input[type="email"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

/* Alert/notification styling */
.alert {
    border-radius: 15px;
    padding: 15px 20px;
    margin: 15px 0;
    border-left: 4px solid;
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Loading animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
}

/* Link styling */
a {
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* List styling */
ul li {
    transition: all 0.3s ease;
}

/* Bank/payment card styling */
.tab_bank_atm {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.list_bank_atm .tile-stats {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.list_bank_atm .tile-stats:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

/* Image hover effects */
img {
    transition: all 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

/* Responsive animations */
@media (max-width: 768px) {
    button:hover,
    .btn:hover,
    .card:hover,
    .tile-stats:hover {
        transform: none;
    }
    
    /* Mobile typography */
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    h4 {
        font-size: 16px;
    }
    
    /* Mobile padding adjustments */
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .payment-container {
        margin: 5% 0 !important;
        border-radius: 15px !important;
    }
    
    .loginmodal-container {
    }
    
    /* Mobile table */
    table {
        font-size: 13px;
    }
    
    table thead th,
    table tbody td {
        padding: 10px 8px !important;
    }
    
    /* Mobile buttons */
    button,
    .btn,
    input[type="button"],
    input[type="submit"] {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
    
    /* Mobile inputs */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    select {
        font-size: 16px !important;
        padding: 10px 12px !important;
    }
    
    /* Mobile cards */
    .tile-stats,
    .card {
        margin-bottom: 15px !important;
        border-radius: 15px !important;
    }
    
    /* Mobile navigation */
    .list_bank__,
    .list_bank2__ {
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    /* Mobile images */
    .im_bank img {
        max-width: 80px !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    body {
        font-size: 13px;
    }
    
    .payment-container {
        margin: 3% 0 !important;
    }
    
    .box-title__text {
        font-size: 18px !important;
    }
    
    table {
        font-size: 12px;
    }
    
    button,
    .btn {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}

/* Notification container */
.notification-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Function buttons */
.function-container a {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.function-container a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Modal enhancements */
.f-nModalLogin {
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Header logo animation */
.logodnm,
.zoom-in-zoom-out {
    transition: all 0.3s ease;
}

.logodnm:hover,
.zoom-in-zoom-out:hover {
    transform: scale(1.1);
}

/* List items hover */
.list_bank__ .tile-stats,
.list_bank2__ .tile-stats {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.list_bank__ .tile-stats:hover,
.list_bank2__ .tile-stats:hover {
    background: rgba(102, 126, 234, 0.05);
    border-color: #667eea;
}

/* Text gradients for important text */
h1, h2, h3, h4 {
    font-weight: 700;
}

strong {
    font-weight: 600;
}

/* Box shadows on focus */
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Underline hover effect */
.underlineHover {
    position: relative;
    transition: all 0.3s ease;
}

.underlineHover:after {
    transition: width 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 3px;
}
