/* Admin Dashboard Styling */
:root {
    --cloudi7-icg-blue: #2271b1;
    --cloudi7-icg-green: #00a32a;
    --cloudi7-icg-purple: #722ed1;
    --cloudi7-icg-orange: #f56a00;
    --cloudi7-icg-bg-white: #ffffff;
    --cloudi7-icg-shadow: 0 2px 4px rgba(0,0,0,0.05);
    --cloudi7-icg-radius: 10px;
    --cloudi7-icg-text-muted: #646970;
}

.cloudi7-icg-dashboard-wrap {
    margin: 20px 20px 0 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Header */
.cloudi7-icg-dashboard-header {
    margin-bottom: 25px;
}

.cloudi7-icg-dashboard-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #1d2327;
}

.cloudi7-icg-dashboard-header p {
    font-size: 15px;
    color: var(--cloudi7-icg-text-muted);
    margin: 0;
}

/* Stats Grid */
.cloudi7-icg-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cloudi7-icg-stat-card {
    background: var(--cloudi7-icg-bg-white);
    padding: 25px;
    border-radius: var(--cloudi7-icg-radius);
    box-shadow: var(--cloudi7-icg-shadow);
    display: flex;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 5px solid #ccc;
}

.cloudi7-icg-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cloudi7-icg-stat-card.blue { border-left-color: var(--cloudi7-icg-blue); }
.cloudi7-icg-stat-card.green { border-left-color: var(--cloudi7-icg-green); }
.cloudi7-icg-stat-card.purple { border-left-color: var(--cloudi7-icg-purple); }
.cloudi7-icg-stat-card.orange { border-left-color: var(--cloudi7-icg-orange); }

.cloudi7-icg-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f6f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.cloudi7-icg-stat-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.cloudi7-icg-stat-card.blue .dashicons { color: var(--cloudi7-icg-blue); }
.cloudi7-icg-stat-card.green .dashicons { color: var(--cloudi7-icg-green); }
.cloudi7-icg-stat-card.purple .dashicons { color: var(--cloudi7-icg-purple); }
.cloudi7-icg-stat-card.orange .dashicons { color: var(--cloudi7-icg-orange); }

.cloudi7-icg-stat-info .cloudi7-icg-stat-number {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1.2;
}

.cloudi7-icg-stat-info .cloudi7-icg-stat-label {
    font-size: 13px;
    color: var(--cloudi7-icg-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Quick Actions */
.cloudi7-icg-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.cloudi7-icg-action-card {
    background: var(--cloudi7-icg-bg-white);
    padding: 30px;
    border-radius: var(--cloudi7-icg-radius);
    box-shadow: var(--cloudi7-icg-shadow);
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.cloudi7-icg-action-card:hover {
    border-color: var(--cloudi7-icg-blue);
    background: #f0f6fb;
}

.cloudi7-icg-action-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #e7eff5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    color: var(--cloudi7-icg-blue);
}

.cloudi7-icg-action-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.cloudi7-icg-action-content h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #1d2327;
}

.cloudi7-icg-action-content p {
    margin: 0;
    color: var(--cloudi7-icg-text-muted);
    font-size: 14px;
}

/* Main Grid: Recent Cards + Info */
.cloudi7-icg-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.cloudi7-icg-content-box {
    background: var(--cloudi7-icg-bg-white);
    border-radius: var(--cloudi7-icg-radius);
    box-shadow: var(--cloudi7-icg-shadow);
    padding: 25px;
}

.cloudi7-icg-content-box h2 {
    margin: 0 0 20px 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Recent Table Styling */
.cloudi7-icg-recent-table {
    width: 100%;
    border-collapse: collapse;
}

.cloudi7-icg-recent-table th {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 2px solid #f0f0f1;
    color: var(--cloudi7-icg-text-muted);
    font-weight: 600;
}

.cloudi7-icg-recent-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: middle;
}

.cloudi7-icg-recent-table tr:last-child td {
    border-bottom: none;
}

.cloudi7-icg-recent-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f1;
}

.cloudi7-icg-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: #f0f0f1;
    color: #50575e;
}

.cloudi7-icg-btn-view {
    text-decoration: none;
    color: var(--cloudi7-icg-blue);
    font-weight: 600;
    font-size: 13px;
}

.cloudi7-icg-btn-view:hover {
    text-decoration: underline;
}

/* Info List */
.cloudi7-icg-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cloudi7-icg-info-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f1;
}

.cloudi7-icg-info-list li:last-child {
    border-bottom: none;
}

.cloudi7-icg-info-label {
    color: var(--cloudi7-icg-text-muted);
    font-weight: 500;
}

.cloudi7-icg-info-value {
    color: #1d2327;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
    .cloudi7-icg-actions-row, .cloudi7-icg-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .cloudi7-icg-stats-row {
        grid-template-columns: 1fr;
    }
}
