/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    padding: 20px;
}

/* Container */
.container {
    max-width: 100%;
    margin: 0 auto;
}

.container-narrow {
    max-width: 1000px;
    margin: 0 auto;
}

/* Typography */
h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

h4 {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
    margin-top: 15px;
    font-weight: 600;
}

/* Links */
a {
    color: #667eea;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Gradient Header */
.header-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.header-gradient h1 {
    color: white;
    margin-bottom: 10px;
}

.header-gradient .subtitle {
    opacity: 0.9;
    font-size: 16px;
}

.header-gradient .subtitle a {
    color: white;
}

/* Stats Bar */
.stats-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    height: 55px;
    padding: 0 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-info {
    display: flex;
    gap: 20px;
}

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 20px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-purple {
    background: #e8e0f0;
    color: #764ba2;
}

.badge-green {
    background: #d4edda;
    color: #155724;
}

.badge-red {
    background: #f8d7da;
    color: #721c24;
}

.badge-gray {
    background: #e9ecef;
    color: #6c757d;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Action Buttons (for stats bar) */
.actions-bar {
    display: none;
    gap: 10px;
}

.actions-bar.visible {
    display: flex;
}

.action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.action-btn.danger {
    background: rgba(220, 53, 69, 0.8);
    border-color: rgba(220, 53, 69, 0.9);
}

.action-btn.danger:hover {
    background: rgba(220, 53, 69, 1);
}

.action-btn.primary {
    background: rgba(40, 167, 69, 0.8);
    border-color: rgba(40, 167, 69, 0.9);
}

.action-btn.primary:hover {
    background: rgba(40, 167, 69, 1);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.info-value {
    font-size: 15px;
    color: #333;
}

.info-value a {
    color: #667eea;
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

.info-value.empty {
    color: #ccc;
    font-style: italic;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

.back-link svg {
    margin-right: 6px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

/* Alerts */
.alert {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

/* Links in Tables */
.website-link {
    color: #667eea;
    text-decoration: none;
}

.website-link:hover {
    text-decoration: underline;
}

.company-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.company-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.company-link.empty {
    color: #999;
    font-weight: normal;
}

/* Summary & Code Blocks */
.summary-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.code-block {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    font-family: monospace;
    font-size: 12px;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}

/* Login Page Specific */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 10px;
}

.login-container .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #eee;
}

.data-table th {
    text-align: left;
    padding: 12px 15px;
    font-weight: 600;
    color: #555;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table a {
    color: #667eea;
}

.data-table .badge {
    margin-left: 5px;
}

.verification-badge {
    display: inline-block;
    margin-left: 8px;
    font-weight: bold;
    font-size: 16px;
}

.verification-badge.verified {
    color: #28a745;
}

.verification-badge.not-verified {
    color: #dc3545;
}

.empty-message {
    color: #999;
    font-style: italic;
}

/* Tabulator Overrides */
.tabulator {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tabulator .tabulator-header {
    background: #f8f9fa;
    border-bottom: 2px solid #eee;
}

.tabulator .tabulator-header .tabulator-col {
    background: #f8f9fa;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title {
    font-weight: 600;
    color: #555;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
}

.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input:focus {
    outline: none;
    border-color: #667eea;
}

.tabulator-row {
    border-bottom: 1px solid #eee;
}

.tabulator-row:hover {
    background: #f8f9fa !important;
}

.tabulator-row.tabulator-selected {
    background: #e8f0fe !important;
}

.tabulator-row.tabulator-selected:hover {
    background: #d3e3fd !important;
}

.tabulator-cell {
    font-size: 14px;
    color: #333;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tabulator-row-handle-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tabulator-row-handle-box input[type="checkbox"] {
    margin: 0;
}
