/* TableCrafter Admin Dashboard — admin-dashboard.css */

.gt-dashboard-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Hero */
.gt-hero {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
    border-radius: 12px;
    padding: 32px 40px;
    color: #fff;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.gt-hero-text h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
    border: none;
    padding: 0;
}
.gt-hero-text p {
    margin: 0;
    opacity: 0.88;
    font-size: 15px;
    color: #fff;
}
.gt-hero-version {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    color: #fff;
}
.gt-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.gt-hero-btn {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
    color: #0f766e;
    border: none;
    cursor: pointer;
    transition: opacity 150ms;
}
.gt-hero-btn:hover { opacity: 0.85; color: #0f766e; }
.gt-hero-btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.6);
    color: #fff;
}
.gt-hero-btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Dashboard grid */
.gt-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.gt-dashboard-grid-full {
    grid-column: 1 / -1;
}

/* Widget card */
.gt-widget {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.gt-widget h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin: 0 0 18px;
    padding: 0;
    border: none;
}

/* Stats widget. #2257 — the card count varies (Total/Active/Trash + one per
   data source in use), so let the grid flow instead of fixing 3 columns. */
.gt-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 14px;
}
.gt-stat-item {
    text-align: center;
    padding: 14px 10px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
}
.gt-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #0d9488;
    line-height: 1;
    display: block;
}
.gt-stat-label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    display: block;
}

/* Sources widget */
.gt-sources-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.gt-source-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    font-size: 13px;
}
.gt-source-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.gt-source-dot-active { background: #10b981; }
.gt-source-dot-inactive { background: #d1d5db; }
.gt-source-name { font-weight: 600; color: #111827; flex: 1; }
.gt-source-status { font-size: 12px; color: #6b7280; }

/* License widget */
.gt-license-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 14px;
}
.gt-license-status.active { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); }
.gt-license-status.free { background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.2); }
.gt-license-icon { font-size: 22px; }
.gt-license-text strong { display: block; font-size: 14px; font-weight: 700; color: #111827; }
.gt-license-text span { font-size: 12px; color: #6b7280; }
.gt-license-cta {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: #0d9488;
    color: #fff;
    text-decoration: none;
    transition: opacity 150ms;
}
.gt-license-cta:hover { opacity: 0.85; color: #fff; }

/* System info widget */
.gt-system-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.gt-system-table tr { border-bottom: 1px solid #f3f4f6; }
.gt-system-table tr:last-child { border-bottom: none; }
.gt-system-table td {
    padding: 8px 4px;
    color: #374151;
}
.gt-system-table td:first-child { color: #6b7280; width: 50%; }
.gt-system-table td:last-child { font-weight: 600; color: #111827; }

/* Changelog widget */
.gt-changelog-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.gt-changelog-item {
    padding: 12px 14px;
    border-left: 3px solid #0d9488;
    background: #f9fafb;
    border-radius: 0 8px 8px 0;
}
.gt-changelog-version {
    font-size: 13px;
    font-weight: 700;
    color: #0d9488;
    margin-bottom: 4px;
}
.gt-changelog-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Quick links widget */
.gt-quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.gt-quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    transition: border-color 150ms, background 150ms;
    background: #fff;
}
.gt-quick-link:hover { border-color: #0d9488; background: rgba(13,148,136,0.04); color: #0d9488; }
.gt-quick-link-icon { font-size: 18px; }

@media (max-width: 782px) {
    .gt-hero { padding: 24px 20px; }
    .gt-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .gt-quick-links { grid-template-columns: 1fr; }
    .gt-dashboard-grid { grid-template-columns: 1fr; }
}
