/* Professional Sites Management Styles */

.sites-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: #f8fafc;
}

/* Header Styles - Professional Gray Theme */
.sites-header {
    background: #ffffff;
    color: #1f2937;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.header-info {
    flex: 1;
}

.header-title {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    gap: 0.75rem;
    color: #111827;
}

.header-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: #6b7280;
}

.header-description {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-refresh,
.btn-add {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 14px;
}

.btn-add {
    background: #111827;
    color: white;
    border-color: #111827;
}

.btn-refresh:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
    text-decoration: none;
}

.btn-add:hover {
    background: #1f2937;
    color: white;
    text-decoration: none;
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    gap: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: #111827;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Sites Table Container */
.sites-grid-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

/* Sites Table */
.sites-table-wrapper {
    overflow-x: auto;
}

.sites-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
}

.sites-table thead tr {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.sites-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    color: #374151;
    font-size: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.sites-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.sites-table tbody tr:hover {
    background: #f9fafb;
}

.sites-table tbody tr:last-child {
    border-bottom: none;
}

.sites-table td {
    padding: 16px 20px;
    vertical-align: middle;
    border: none;
}

/* Column Specific Styles */
.col-name {
    width: 25%;
    min-width: 200px;
}

.col-type {
    width: 20%;
    min-width: 120px;
}

.col-status {
    width: 20%;
    min-width: 120px;
}

.col-version {
    width: 20%;
    min-width: 120px;
}

.col-action {
    width: 15%;
    min-width: 100px;
    text-align: center;
}

/* Site Info */
.site-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-icon {
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.site-icon svg {
    width: 18px;
    height: 18px;
    color: #6b7280;
}

.site-name {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.site-domain {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

/* Site Type */
.site-type {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-online {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-offline {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-online .status-dot {
    background: #22c55e;
    animation: pulse-dot 2s ease-in-out infinite;
}

.status-offline .status-dot {
    background: #ef4444;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Version Text */
.version-text {
    font-family: 'Consolas', 'Monaco', 'SF Mono', monospace;
    color: #6b7280;
    font-size: 13px;
    background: #f9fafb;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.action-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

.btn-access:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #3b82f6;
}

.btn-edit:hover {
    background: #fefce8;
    border-color: #eab308;
    color: #eab308;
}

.btn-delete:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

/* Empty State */
.empty-row {
    background: #fafafa;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: #d1d5db;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6b7280;
    margin: 0 0 1.5rem 0;
}

.empty-state .btn-add {
    margin-top: 1rem;
}

/* Pagination */
.sites-pagination {
    display: flex;
    align-items: center;
    justify-content: between;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    background: #fafbfc;
}

.pagination-info {
    color: #6b7280;
    font-size: 14px;
    flex: 1;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #d1d5db;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-number {
    width: 32px;
    height: 32px;
    border: 1px solid #374151;
    background: #374151;
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .sites-container {
        padding: 1rem;
    }
    
    .stats-bar {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .stats-bar {
        justify-content: space-around;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .stat-item {
        align-items: center;
        text-align: center;
    }
    
    .sites-table th,
    .sites-table td {
        padding: 12px 16px;
    }
    
    .col-name {
        min-width: 150px;
    }
    
    .col-type,
    .col-version {
        display: none;
    }
    
    .site-info {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .sites-container {
        padding: 1rem 0.5rem;
    }
    
    .sites-table th,
    .sites-table td {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .site-name {
        font-size: 12px;
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
    }
    
    .action-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .col-status {
        min-width: 80px;
    }
    
    .status-badge {
        padding: 4px 8px;
        font-size: 10px;
    }
}
