/**
 * TAC Dashboard Styles v20.6.2
 */

.tac-dashboard-wrap {
    max-width: 1400px;
    margin: 20px auto;
}

.tac-dashboard-wrap h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e3a5f;
    border-bottom: 3px solid #00d4aa;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.tac-dashboard-wrap h1 .dashicons {
    color: #00d4aa;
}

/* Status Grid */
.tac-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tac-status-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tac-status-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.4);
}

.tac-status-card h3 {
    margin: 0 0 15px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.tac-status-card .status-number {
    font-size: 48px;
    font-weight: bold;
    color: #00d4aa;
    display: block;
    line-height: 1;
}

.tac-status-card p {
    margin: 10px 0 0 0;
    opacity: 0.7;
    font-size: 13px;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-ok {
    background: #00d4aa;
    color: #1e3a5f;
}

.status-error {
    background: #ff6b6b;
    color: white;
}

.status-warning {
    background: #ffd93d;
    color: #1e3a5f;
}

/* Components List */
.tac-components-list {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tac-components-list h2 {
    margin-top: 0;
    color: #1e3a5f;
}

.tac-components-list table {
    margin-top: 15px;
}

/* TACK Tools */
.tack-tools {
    margin-top: 30px;
}

.tack-tools h2 {
    color: #1e3a5f;
    margin-bottom: 20px;
}

.tac-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.tac-tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #00d4aa 0%, #00a88a 100%);
    color: #1e3a5f;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s;
}

.tac-tool-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4);
    color: #1e3a5f;
}

.tac-tool-btn .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
}

/* Packs Grid */
.tac-packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tac-pack-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #00d4aa;
}

.tac-pack-card h3 {
    margin: 0 0 10px 0;
    color: #1e3a5f;
}

.tac-pack-card .pack-endpoint {
    font-family: monospace;
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Workforce Stats */
.tac-workforce-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Health Overview */
.tac-health-overview {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Placeholder */
.tac-placeholder {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .tac-status-grid {
        grid-template-columns: 1fr;
    }
    
    .tac-workforce-stats {
        grid-template-columns: 1fr;
    }
    
    .tac-tool-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .tac-components-list,
    .tac-pack-card,
    .tac-health-overview {
        background: #2d2d2d;
        color: #eee;
    }
    
    .tac-dashboard-wrap h1 {
        color: #00d4aa;
    }
    
    .tack-tools h2,
    .tac-components-list h2,
    .tac-pack-card h3 {
        color: #00d4aa;
    }
}