/* AI Tools Directory - Admin Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.aitd-wrap { font-family: 'Inter', sans-serif; max-width: 1200px; padding: 20px 0; }
.aitd-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.aitd-header h1 { margin: 0; font-size: 24px; font-weight: 700; color: #1a1a2e; }

.aitd-btn { display: inline-flex; align-items: center; gap: 6px; background: #6c63ff; color: #fff !important; padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 13px; border: none; cursor: pointer; transition: all .2s; }
.aitd-btn:hover { background: #5a52d5; transform: translateY(-1px); }
.aitd-btn.secondary { background: #f1f1f1; color: #333 !important; }
.aitd-btn.secondary:hover { background: #e0e0e0; }
.aitd-btn.danger { background: #ff4757; }
.aitd-btn.danger:hover { background: #e8354a; }
.aitd-btn.full { width: 100%; justify-content: center; padding: 12px; }
.aitd-btn-sm { display: inline-block; padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; text-decoration: none; background: #f0f0f0; color: #333 !important; margin-right: 4px; }
.aitd-btn-sm:hover { background: #e0e0e0; }
.aitd-btn-sm.danger { background: #fff0f0; color: #ff4757 !important; }
.aitd-btn-sm.danger:hover { background: #ffe0e0; }

.aitd-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-weight: 500; }
.aitd-notice.success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #4caf50; }

.aitd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.aitd-stat-box { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 20px; text-align: center; }
.aitd-stat-box .num { display: block; font-size: 32px; font-weight: 700; color: #6c63ff; }
.aitd-stat-box .label { display: block; font-size: 13px; color: #888; margin-top: 4px; }

.aitd-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #e8e8e8; }
.aitd-table thead { background: #f8f8ff; }
.aitd-table th { padding: 14px 16px; text-align: left; font-size: 12px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: .5px; }
.aitd-table td { padding: 14px 16px; border-top: 1px solid #f0f0f0; font-size: 13px; vertical-align: middle; }
.aitd-table tr:hover td { background: #f8f8ff; }
.aitd-table small { color: #999; font-size: 11px; }
.aitd-link { color: #6c63ff !important; text-decoration: none; font-weight: 500; }

.aitd-cat-badge { background: #f0eeff; color: #6c63ff; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.aitd-pricing { padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.aitd-pricing.free { background: #e8f5e9; color: #2e7d32; }
.aitd-pricing.freemium { background: #fff3e0; color: #e65100; }
.aitd-pricing.paid { background: #fce4ec; color: #c62828; }

/* Form */
.aitd-form-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.aitd-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 24px; margin-bottom: 16px; }
.aitd-card h2 { font-size: 15px; font-weight: 700; margin: 0 0 20px; color: #1a1a2e; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.aitd-field { margin-bottom: 18px; }
.aitd-field label { display: block; font-size: 13px; font-weight: 600; color: #333; margin-bottom: 6px; }
.aitd-field .req { color: #ff4757; }
.aitd-field input[type="text"],
.aitd-field input[type="url"],
.aitd-field textarea,
.aitd-field select { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; font-family: 'Inter', sans-serif; transition: border .2s; box-sizing: border-box; }
.aitd-field input:focus, .aitd-field textarea:focus, .aitd-field select:focus { outline: none; border-color: #6c63ff; box-shadow: 0 0 0 3px rgba(108,99,255,.1); }
.aitd-field small { display: block; color: #999; font-size: 11px; margin-top: 5px; }
.aitd-submit-card { background: linear-gradient(135deg, #6c63ff 0%, #a78bfa 100%); border: none; }
.aitd-submit-card .aitd-btn.full { background: #fff; color: #6c63ff !important; font-size: 15px; }
.aitd-submit-card .aitd-btn.full:hover { background: #f0eeff; }

/* Toggle */
.aitd-toggle-field { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.aitd-toggle-field label:first-child { flex: 1; }
.aitd-toggle-field small { width: 100%; margin-top: 0; }
.aitd-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.aitd-toggle input { opacity: 0; width: 0; height: 0; }
.aitd-toggle-slider { position: absolute; inset: 0; background: #ccc; border-radius: 24px; cursor: pointer; transition: .3s; }
.aitd-toggle-slider:before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .3s; }
.aitd-toggle input:checked + .aitd-toggle-slider { background: #6c63ff; }
.aitd-toggle input:checked + .aitd-toggle-slider:before { transform: translateX(20px); }

/* Categories */
.aitd-cat-list { list-style: none; margin: 0; padding: 0; }
.aitd-cat-list li { padding: 10px 14px; border-bottom: 1px solid #f0f0f0; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.aitd-cat-list li:before { content: '📁'; font-size: 14px; }
