
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 20px;
}

.tab-container {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.03);
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex: 1;
    max-width: 500px;
    position: relative;
    overflow: hidden;
}

.tab-indicator {
    position: absolute;
    bottom: 8px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.5);
}

.tab-button {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.tab-button:first-child {
    border-radius: 14px 0 0 14px;
}

.tab-button:last-child {
    border-radius: 0 14px 14px 0;
}

.tab-button:hover:not(.active) {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.02);
}

.tab-button.active {
    color: #4CAF50;
}

.add-announcement-btn {
    padding: 12px 24px;
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.25);
    border-radius: 12px;
    color: #4CAF50;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

.add-announcement-btn:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.4);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25);
    transform: translateY(-1px);
}

.add-announcement-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.2);
}

.section {
    margin-bottom: 60px;
}

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    min-height: 200px;
}

.ticket-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ticket-card:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.ticket-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.ticket-status {
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ticket-status.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.ticket-status.processing {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

.ticket-status.completed {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.ticket-status.rejected {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.ticket-status.announcement {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.ticket-content {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.ticket-reply {
    font-size: 13px;
    color: #4CAF50;
    margin-bottom: 12px;
    line-height: 1.5;
    text-align: right;
}

.ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.ticket-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.ticket-id {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-family: monospace;
}

.vod-card {
    cursor: default;
}

.vod-card .ticket-header {
    justify-content: space-between;
}

.vod-card .vod-date {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.vod-content {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.vod-poster {
    width: 80px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.vod-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vod-poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.vod-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vod-meta-line {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.vod-meta-line:nth-child(3) {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ticket-actions {
    display: flex;
    gap: 8px;
}

.ticket-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ticket-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.ticket-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.ticket-btn-approve {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.ticket-btn-approve:hover:not(:disabled) {
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.5);
}

.ticket-btn-reject {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.ticket-btn-reject:hover:not(:disabled) {
    background: rgba(244, 67, 54, 0.3);
    border-color: rgba(244, 67, 54, 0.5);
}

.ticket-btn-reply {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.ticket-btn-reply:hover {
    background: rgba(33, 150, 243, 0.3);
    border-color: rgba(33, 150, 243, 0.5);
}

.ticket-btn-complete {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.ticket-btn-complete:hover {
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.5);
}

.ticket-btn-edit {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.ticket-btn-edit:hover {
    background: rgba(33, 150, 243, 0.3);
    border-color: rgba(33, 150, 243, 0.5);
}

.ticket-btn-delete {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

.ticket-btn-delete:hover {
    background: rgba(158, 158, 158, 0.3);
    border-color: rgba(158, 158, 158, 0.5);
}

.ticket-btn-unavailable {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.ticket-btn-unavailable:hover:not(:disabled) {
    background: rgba(251, 146, 60, 0.3);
    border-color: rgba(251, 146, 60, 0.5);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.4);
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-container {
        max-width: none;
    }

    .add-announcement-btn {
        width: 100%;
        justify-content: center;
    }

    .tickets-grid {
        grid-template-columns: 1fr;
    }

    .tab-button {
        padding: 14px 16px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .tab-button {
        padding: 12px 16px;
        font-size: 14px;
    }
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-box {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.total { background: linear-gradient(135deg, #4fd1c7, #38b2ac); }
.stat-icon.normal { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.stat-icon.today { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.stat-icon.popup { background: linear-gradient(135deg, #f472b6, #ec4899); }

.stat-box.clickable {
    cursor: pointer;
    transition: all 0.2s;
}

.stat-box.clickable:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.stat-info p {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin: 4px 0 0 0;
}

.content-grid {
    display: block;
    width: 100%;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 20px;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.sidebar-title svg {
    color: #fbbf24;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quick-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.quick-btn-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 8px;
    background: rgba(79, 209, 199, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4fd1c7;
}

.quick-btn-icon.delete {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

.quick-btn-text {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
}

.activity-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4fd1c7;
    margin-top: 5px;
    flex-shrink: 0;
}

.activity-content {
    color: rgba(255,255,255,0.6);
    line-height: 1.4;
}

.activity-time {
    color: rgba(255,255,255,0.3);
    font-size: 11px;
    margin-top: 2px;
}

.empty-activity {
    text-align: center;
    color: rgba(255,255,255,0.4);
    padding: 20px 0;
    font-size: 13px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.detail-item {
    margin-bottom: 16px;
}

.detail-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 4px;
}

.detail-value {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

.global-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}
.global-toast.show {
    opacity: 1;
    transform: translateX(0);
}
.global-toast.success {
    background: rgba(16, 185, 129, 0.9);
}
.global-toast.error {
    background: rgba(239, 68, 68, 0.9);
}
.global-toast.info {
    background: rgba(251, 191, 36, 0.9);
}

@media (max-width: 900px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }
}

@media (max-width: 600px) {
    .stats-section {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-box {
        padding: 16px;
    }

    .stat-info h3 {
        font-size: 20px;
    }
}
