/**
 * CSS cho hệ thống KYC
 * Thiết kế hiện đại, responsive
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container, .admin-container {
    max-width: 800px;
    margin: 0 auto;
}

.admin-container {
    max-width: 1200px;
}

/* Header */
.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Community Section */
.community-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.community-card {
    background: white;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.community-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: height 0.3s ease;
}

.community-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.community-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 45px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.3);
}

.community-card:hover::before {
    height: 100%;
    opacity: 0.08;
}

.community-card:hover::after {
    opacity: 1;
}

.community-icon {
    font-size: 3.5em;
    margin-bottom: 18px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.community-card:hover .community-icon {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-15px);
    }
    50% {
        transform: translateY(-5px);
    }
    75% {
        transform: translateY(-10px);
    }
}

.community-card h3 {
    color: #333;
    font-size: 1.6em;
    margin-bottom: 12px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.community-card:hover h3 {
    color: #667eea;
}

.community-card p {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 22px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.community-btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.community-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.community-btn:hover::before {
    width: 300px;
    height: 300px;
}

.channel-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.channel-btn:hover {
    background: linear-gradient(135deg, #5568d3 0%, #65408b 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.group-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.group-btn:hover {
    background: linear-gradient(135deg, #e082ea 0%, #e4465b 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.5);
}

.community-btn:active {
    transform: translateY(-1px) scale(1.02);
}

@media (max-width: 768px) {
    .community-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .community-card {
        padding: 30px 20px;
    }
    
    .community-icon {
        font-size: 3em;
    }
    
    .community-card h3 {
        font-size: 1.4em;
    }
    
    .community-card p {
        font-size: 0.9em;
    }
    
    .community-btn {
        padding: 12px 28px;
        font-size: 0.95em;
        width: 100%;
        max-width: 280px;
    }
}

/* Admin Header */
.admin-header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-header h1 {
    margin: 0;
    color: #667eea;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Card */
.card, .result-card, .login-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.login-card {
    max-width: 400px;
    margin: 100px auto;
}

.card h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 1em;
}

.form-group label .icon {
    margin-right: 5px;
}

/* Input with Paste Button Container */
.input-with-paste {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-paste input {
    flex: 1;
}

.paste-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    z-index: 10;
}

.paste-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.paste-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 12px 50px 12px 15px; /* Thêm padding-right cho nút paste */
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 0.9em;
}

/* Buttons */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.9em;
}

/* Alert */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Status Badge */
.status-badge {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.status-badge .badge-icon {
    font-size: 4em;
    line-height: 1;
}

.status-badge .badge-content {
    flex: 1;
}

.status-badge h2 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.status-approved {
    background: #d4edda;
    border: 2px solid #28a745;
}

.status-rejected {
    background: #f8d7da;
    border: 2px solid #dc3545;
}

.status-pending {
    background: #fff3cd;
    border: 2px solid #ffc107;
}

.status-unknown {
    background: #e2e3e5;
    border: 2px solid #6c757d;
}

/* User Info */
.user-info {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255,255,255,0.5);
    border-radius: 8px;
}

.user-info p {
    margin: 8px 0;
}

/* Role Badge */
.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
}

.role-user {
    background: #e0e0e0;
    color: #333;
}

.role-vip {
    background: #ffd700;
    color: #333;
}

.role-thuongnhan {
    background: #17a2b8;
    color: white;
}

.role-seller {
    background: #28a745;
    color: white;
}

.role-admin {
    background: #dc3545;
    color: white;
}

.role-boss {
    background: #6f42c1;
    color: white;
}

.role-hacker {
    background: #343a40;
    color: white;
}

/* Messages */
.trust-message {
    margin-top: 15px;
    padding: 10px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    color: #155724;
}

.warning-message {
    padding: 15px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
}

.danger-text {
    color: #dc3545;
    font-weight: 700;
    font-size: 1.1em;
    margin-top: 10px;
}

.warning-text {
    color: #856404;
    font-weight: 600;
}

/* Footer Links */
.footer-links {
    text-align: center;
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Info Box */
.info-box {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    margin-top: 20px;
}

.info-box h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.info-box ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 25px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Tab Content */
.tab-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.tab-content h2 {
    color: #667eea;
    margin-bottom: 20px;
}

.empty-message {
    text-align: center;
    color: #888;
    padding: 40px;
    font-size: 1.1em;
}

/* Table */
.users-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table thead {
    background: #f8f9fa;
}

table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #667eea;
    border-bottom: 2px solid #dee2e6;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

table tbody tr:hover {
    background: #f8f9fa;
}

.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.role-select {
    padding: 6px 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 0.9em;
    cursor: pointer;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.search-form .form-group {
    flex: 1;
    margin-bottom: 0;
}

.search-form .btn {
    width: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .tab {
        width: 100%;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form .btn {
        width: 100%;
    }
    
    table {
        font-size: 0.9em;
    }
    
    table th,
    table td {
        padding: 8px;
    }
    
    .status-badge {
        flex-direction: column;
        text-align: center;
    }
}

/* CAPTCHA Styles - Beautiful & Clean Design */
.captcha-group {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 2px solid #e8eaff;
    border-radius: 16px;
    padding: 25px;
    margin: 25px 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.captcha-group::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.03) 0%, transparent 70%);
    animation: captchaGlow 4s ease-in-out infinite;
}

@keyframes captchaGlow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(10px, 10px) scale(1.1); opacity: 0.8; }
}

.captcha-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 8px 20px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.captcha-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.captcha-header label {
    font-weight: 700;
    color: #333;
    font-size: 15px;
    letter-spacing: 0.5px;
    margin: 0;
}

.captcha-refresh {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.captcha-refresh::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.captcha-refresh:hover::before {
    width: 300px;
    height: 300px;
}

.captcha-refresh:hover {
    background: #667eea;
    color: white;
    transform: rotate(180deg) scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.captcha-refresh:active {
    transform: rotate(180deg) scale(0.95);
}

.captcha-instruction {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.captcha-instruction::before {
    content: "ℹ️";
    font-size: 14px;
    animation: infoIconPulse 2s ease-in-out infinite;
}

@keyframes infoIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.captcha-image-box {
    background: white;
    border: 2px dashed #d0d0d0;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.captcha-image-box:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.captcha-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.captcha-image-box:hover .captcha-image {
    transform: scale(1.05);
}

.captcha-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.captcha-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 4px 15px rgba(102, 126, 234, 0.15);
    background: #fafbff;
    transform: translateY(-2px);
}

.captcha-input::placeholder {
    color: #999;
    letter-spacing: 0;
    text-transform: none;
}

/* Responsive CAPTCHA */
@media (max-width: 768px) {
    .captcha-group {
        padding: 25px 20px;
    }
    
    .captcha-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .captcha-group label {
        text-align: center;
        font-size: 1.1em;
    }
    
    .captcha-refresh {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .captcha-content {
        padding: 20px;
    }
    
    .captcha-image-box {
        padding: 10px;
    }
    
    .captcha-question {
        font-size: 1.6em;
        padding: 25px 20px;
        min-height: 80px;
        letter-spacing: 2px;
    }
    
    .captcha-input {
        font-size: 1.3em;
        padding: 18px 20px;
    }
}

/* Modal Styles - Enhanced & Fixed V2 */
.modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: rgba(0, 0, 0, 0.75);
    padding: 40px 20px;
    box-sizing: border-box;
}

.modal-content {
    background-color: #ffffff;
    margin: 0 auto;
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f5f5f5;
    z-index: 10;
}

.modal-close:hover {
    color: #ffffff;
    background-color: #dc3545;
    transform: rotate(90deg);
}

.modal-content h2 {
    color: #667eea;
    margin: 0 0 25px 0;
    padding: 0 0 15px 0;
    border-bottom: 3px solid #e0e0e0;
    font-size: 1.6em;
    font-weight: 700;
}

.modal-content .form-group {
    margin-bottom: 20px;
}

.modal-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.modal-content input[type="text"],
.modal-content input[type="tel"],
.modal-content input[type="email"],
.modal-content select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.modal-content input:focus,
.modal-content select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-content small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85em;
}

.modal-content small a {
    color: #667eea;
    text-decoration: none;
}

.modal-content small a:hover {
    text-decoration: underline;
}

/* Filter Form Styles */
.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

/* Bulk Action Buttons */
.bulk-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bulk-actions form {
    display: inline;
}

/* Community Cards Section */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
    padding: 0;
}

.cards-container .card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}

.cards-container .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.cards-container .card:hover::before {
    opacity: 1;
}

.cards-container .card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.card-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.card-image::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: cardImageGlow 3s ease-in-out infinite;
}

@keyframes cardImageGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -20px); }
}

.card-content {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.cards-container .card:hover .card-title {
    color: #667eea;
}

.card-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.card-footer .btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.card-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.card-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.card-footer .btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 2px solid #e0e0e0;
}

.card-footer .btn-secondary:hover {
    background: #e8e8e8;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1200px) {
    .filter-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .filter-grid > div:last-child {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .modal {
        padding: 20px 10px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-content h2 {
        font-size: 1.4em;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-grid > div:last-child {
        grid-column: 1;
        flex-direction: column;
    }
    
    .filter-grid > div:last-child .btn {
        width: 100%;
    }
    
    /* Responsive bulk actions */
    .bulk-actions {
        flex-direction: column;
        width: 100%;
    }
    
    /* Responsive Community Cards */
    .cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    
    .card-image {
        height: 120px;
        font-size: 40px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .card-description {
        font-size: 13px;
    }
    
    .card-footer {
        flex-direction: column;
    }
    
    .card-footer .btn {
        width: 100%;
    }
    
    .bulk-actions form {
        width: 100%;
    }
    
    .bulk-actions button {
        width: 100%;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .result-card, .admin-header, .tab-content {
    animation: fadeIn 0.5s ease;
}

