/* Admin Styles */

.admin-wrapper {
    min-height: 100vh;
    background: #f5f6fa;
}

/* Admin Header */
.admin-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.header-brand:hover {
    color: #e0e0e0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-link {
    color: white;
    opacity: 0.85;
    transition: all 0.2s ease;
    padding: 0.25rem;
    border-radius: 4px;
}

.header-link:hover {
    color: white;
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.admin-user {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Admin Main */
.admin-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Dashboard */
.dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.stat-card.active {
    border-color: #1b6ec2;
}

.stat-card.unviewed .stat-number {
    color: #dc3545;
}

.stat-card.viewed .stat-number {
    color: #28a745;
}

.stat-card.completed .stat-number {
    color: #6c757d;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

/* Submissions List */
.submissions-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.list-title {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.submission-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.submission-item:hover {
    background: #f8f9fa;
    color: inherit;
}

.submission-item:last-child {
    border-bottom: none;
}

.submission-item.unread {
    background: #fff8e6;
}

.submission-item.unread:hover {
    background: #fff3d0;
}

.submission-indicator {
    width: 24px;
    flex-shrink: 0;
}

.unread-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #1b6ec2;
    border-radius: 50%;
}

.submission-content {
    flex: 1;
    min-width: 0;
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.submission-phone {
    font-weight: 600;
    color: #1a1a2e;
}

.unread .submission-phone {
    font-weight: 700;
}

.submission-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.submission-details {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.85rem;
    color: #6c757d;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.submission-address {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.submission-arrow {
    color: #adb5bd;
    margin-left: 1rem;
}

/* Submission Detail Page */
.submission-detail {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1b6ec2;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.detail-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.detail-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

.detail-card-body {
    padding: 1.25rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 500;
    color: #1a1a2e;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.video-item {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.video-label {
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Actions */
.actions-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-complete {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .submission-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    .stat-card {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .stat-number {
        font-size: 1.5rem;
        order: 2;
        margin-bottom: 0;
    }
}
