body {
    font-family: 'Noto Sans TC', sans-serif;
    background: linear-gradient(-45deg, #a7c7e7, #d6bcfa);
    background-size: 400%;
    animation: gradientBG 15s ease infinite;
    color: #2d3748;
    min-height: 100vh;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.admin-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 1200px;
    margin: 30px auto;
}
.login-container {
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: float 4s ease-in-out infinite;
}
@media (max-width: 576px) {
    .login-container { width: 90%; }
}
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(167, 199, 231, 0.2), transparent);
    z-index: -1;
    animation: pulseBG 8s infinite;
}
@keyframes pulseBG {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}
.login-container h2 {
    font-family: 'Roboto', sans-serif;
    color: #4c51bf;
    font-size: 2rem;
    font-weight: 700;
    animation: fadeIn 1s ease-in;
}
.fox-icon {
    width: 80px;
    height: 80px;
    background: #4c51bf;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: swayFox 2s ease-in-out infinite;
}
.fox-icon::before {
    content: '🖨️';
    font-size: 36px;
    color: #f7fafc;
}
@keyframes swayFox {
    0% { transform: translateX(-50%) rotate(-5deg); }
    50% { transform: translateX(-50%) rotate(5deg); }
    100% { transform: translateX(-50%) rotate(-5deg); }
}
.logo-text {
    position: absolute;
    bottom: 10px;
    right: 25px;
    color: #4c51bf;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    animation: fadeIn 1.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.form-label {
    color: #2d3748;
    font-weight: 500;
    font-size: 1rem;
}
.form-control {
    border: 2px solid #a7c7e7;
    border-radius: 10px;
    padding: 10px;
    font-size: 1rem;
    background: #f7fafc;
    transition: all 0.3s ease;
}
.form-control:focus {
    border-color: #4c51bf;
    box-shadow: 0 0 10px rgba(76, 81, 191, 0.5);
    background: #ffffff;
}
.btn-primary {
    background: linear-gradient(45deg, #4c51bf, #6b7280);
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    background: linear-gradient(45deg, #434190, #4a5568);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 81, 191, 0.4);
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}
.btn-primary:hover::after {
    width: 200px;
    height: 200px;
}
.alert-danger {
    border-radius: 8px;
    font-size: 0.95rem;
    animation: fadeIn 0.5s ease;
    padding: 12px;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #dc2626;
}
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}
.navbar {
    background: #4c51bf;
    padding: 15px;
    border-radius: 10px;
    margin: 2px;
}
.navbar-brand, .nav-link {
    color: #f7fafc !important;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}
.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}
.table {
    background: #f7fafc;
    border-radius: 10px;
    overflow: hidden;
}
.table th {
    background: #4c51bf;
    color: #f7fafc;
    font-weight: 600;
}
.table td {
    vertical-align: middle;
}
.btn-danger {
    background: linear-gradient(45deg, #e53e3e, #c53030);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
}
.btn-danger:hover {
    background: linear-gradient(45deg, #c53030, #9b2c2c);
    transform: translateY(-2px);
}
.btn-info {
    background: #e9f0ff;
    color: #4c51bf;
    border: 2px solid #a7c7e7;
    border-radius: 8px;
    padding: 10px 20px;
}
.btn-info:hover {
    background: #d6e5ff;
    transform: translateY(-2px);
}
.alert {
    border-radius: 8px;
    font-size: 0.95rem;
    animation: slideIn 0.5s ease;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.pagination .page-link {
    color: #4c51bf;
    border: none;
    margin: 0 5px;
    border-radius: 5px;
}
.pagination .page-item.active .page-link {
    background: #4c51bf;
    color: #f7fafc;
}
.pagination .page-link:hover {
    background: #e9f0ff;
}
.log-table {
    background: #f7fafc;
    border-radius: 10px;
    margin-top: 20px;
}
.log-table th {
    background: #6b7280;
    color: #f7fafc;
}