/* ========================================
   GOTO VPN ADMIN PANEL - COMPONENT STYLES
   All inline styles extracted and organized
   ======================================== */

/* ========================================
   DASHBOARD COMPONENTS
   ======================================== */

/* System Health Progress Bar */
.system-health-progress {
    width: 120px;
    height: 8px;
}

/* Dashboard Card Titles */
.dashboard-title {
    color: #5054FE;
}

/* Avatar Icon Backgrounds */
.avatar-icon-light {
    background: rgba(215, 215, 215, 0.1);
}

.avatar-icon-primary {
    background: rgba(80, 84, 254, 0.1);
    color: #5054FE;
}

.avatar-icon-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.avatar-icon-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.avatar-icon-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Dashboard Buttons */
.btn-dashboard-primary {
    background: #5054FE;
    color: white;
    border-radius: 10px;
    border: none;
    transition: all 0.3s ease;
}

.btn-dashboard-primary:hover {
    background: linear-gradient(135deg, #5054FE 0%, #9260FF 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(80, 84, 254, 0.3);
}

.btn-dashboard-light {
    background: rgba(80, 84, 254, 0.1);
    color: #5054FE;
    border-radius: 10px;
    border: none;
    transition: all 0.3s ease;
}

.btn-dashboard-light:hover {
    background: rgba(80, 84, 254, 0.2);
    color: #5054FE;
}

/* Infrastructure Cards */
.infra-card-primary {
    border-left: 4px solid #5054FE !important;
}

.infra-card-success {
    border-left: 4px solid #22c55e !important;
}

.infra-title-primary {
    color: #5054FE;
}

.infra-title-success {
    color: #22c55e;
}

/* Progress Bars */
.progress-sm {
    height: 8px;
    border-radius: 10px;
}

.progress-bar-primary {
    background: #5054FE;
    border-radius: 10px;
}

.progress-bar-success {
    background: #22c55e;
    border-radius: 10px;
}

/* VPN Account Type Cards */
.vpn-card-success {
    border-top: 3px solid #22c55e;
}

.vpn-card-primary {
    border-top: 3px solid #5054FE;
}

.vpn-card-warning {
    border-top: 3px solid #f59e0b;
}

.vpn-value-primary {
    color: #5054FE;
}

.vpn-total-primary {
    color: #5054FE;
    font-weight: 800;
}

/* Badge Styles */
.badge-success-light {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.badge-primary-light {
    background: rgba(80, 84, 254, 0.1);
    color: #5054FE;
}

.badge-new {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 5px 12px;
}

/* Ticket Status Cards */
.ticket-status-open {
    background: rgba(34, 197, 94, 0.1);
    border-top: 3px solid #22c55e;
}

.ticket-status-pending {
    background: rgba(245, 158, 11, 0.1);
    border-top: 3px solid #f59e0b;
}

.ticket-status-awaiting {
    background: rgba(239, 68, 68, 0.1);
    border-top: 3px solid #ef4444;
}

.ticket-status-closed {
    background: rgba(107, 114, 128, 0.1);
    border-top: 3px solid #6b7280;
}

/* Ticket Priority Avatars */
.ticket-priority-high {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.ticket-priority-medium {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.ticket-priority-low {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

/* Ticket Status Badges */
.ticket-badge-open {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.ticket-badge-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.ticket-badge-closed {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

/* User Avatar Gradient */
.user-avatar-gradient {
    background: linear-gradient(135deg, #5054FE 0%, #9260FF 100%);
    color: white;
}

/* Dashboard Links */
.dashboard-link {
    color: #5054FE;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dashboard-link:hover {
    color: #4044EE;
}

/* Chart Container */
.chart-height-200 {
    height: 200px;
}

/* ========================================
   NAVBAR COMPONENTS
   ======================================== */

.navbar-hidden-form {
    display: none;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-primary-gradient {
    color: #5054FE;
}

.bg-primary-light {
    background: rgba(80, 84, 254, 0.1);
}

.bg-success-light {
    background: rgba(34, 197, 94, 0.1);
}

.bg-warning-light {
    background: rgba(245, 158, 11, 0.1);
}

.bg-danger-light {
    background: rgba(239, 68, 68, 0.1);
}

.border-primary-left {
    border-left: 4px solid #5054FE !important;
}

.border-success-left {
    border-left: 4px solid #22c55e !important;
}

.border-primary-top {
    border-top: 3px solid #5054FE;
}

.border-success-top {
    border-top: 3px solid #22c55e;
}

.border-warning-top {
    border-top: 3px solid #f59e0b;
}

.fw-800 {
    font-weight: 800;
}

/* ========================================
   USER MANAGEMENT COMPONENTS
   ======================================== */

/* Card Styling */
.card-rounded {
    border-radius: 1rem;
}

/* User Status Badges */
.badge-status-lg {
    font-size: 1rem;
    min-width: 90px;
}

.badge-status-active {
    font-size: 1rem;
}

/* User Info Text */
.user-info-text {
    font-size: 0.98rem;
}

/* Plan Card Styles */
.plan-title-text {
    font-size: 1.2rem;
}

.plan-description-text {
    font-size: 0.98rem;
}

.badge-plan-status {
    font-size: 0.9rem;
}

/* List Item Labels */
.list-label-width {
    min-width: 120px;
}

/* Progress Bar Small */
.progress-xs {
    height: 8px;
}

/* Subscription Details */
.subscription-detail-label {
    min-width: 140px;
}

/* VPN Account Cards */
.vpn-account-card {
    border-left: 4px solid #5054FE;
    transition: all 0.3s ease;
}

.vpn-account-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(80, 84, 254, 0.15);
}

.vpn-protocol-badge {
    font-size: 0.85rem;
    padding: 4px 10px;
}

/* Action Buttons */
.action-btn-group {
    gap: 8px;
}

.action-btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

/* Modal Styles */
.modal-body-padding {
    padding: 1.5rem;
}

/* Tab Content */
.tab-content-padding {
    padding: 1.5rem;
}

/* Form Labels */
.form-label-bold {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Alert Boxes */
.alert-info-light {
    background: rgba(80, 84, 254, 0.1);
    border-left: 4px solid #5054FE;
    color: #5054FE;
}

/* Plan Price */
.plan-price-large {
    font-size: 2rem;
}

.plan-price-unit {
    font-size: 1rem;
}

/* VPN Card Header */
.vpn-card-header-gradient {
    background: linear-gradient(135deg, rgba(80, 84, 254, 0.05) 0%, rgba(146, 96, 255, 0.1) 100%);
    border-bottom: 2px solid #5054FE;
}

.vpn-card-title-primary {
    color: #5054FE;
}

/* Device ID Code */
.device-id-code {
    font-size: 0.75rem;
}

/* Text Truncation */
.text-truncate-200 {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Button with Gradient */
.btn-gradient-primary {
    background: linear-gradient(135deg, #5054FE 0%, rgba(80, 84, 254, 0.8) 100%);
    border: none;
    color: white;
}

/* ========================================
   USER DASHBOARD COMPONENTS
   ======================================== */

/* Profile Card Header */
.profile-card-header {
    background: linear-gradient(135deg, rgba(80, 84, 254, 0.05) 0%, rgba(146, 96, 255, 0.1) 100%);
}

.profile-card-title {
    color: #5054FE;
}

/* Profile Avatar Icons */
.profile-avatar-bg {
    background: rgba(80, 84, 254, 0.1);
}

.profile-icon-color {
    color: #5054FE;
}

/* Ticket Statistics Cards */
.ticket-stat-assigned-bg {
    background: rgba(80, 84, 254, 0.1);
}

.ticket-stat-assigned-text {
    color: #5054FE;
}

.ticket-stat-pending-bg {
    background: rgba(255, 193, 7, 0.1);
}

.ticket-stat-pending-text {
    color: #ffc107;
}

.ticket-stat-resolved-bg {
    background: rgba(25, 135, 84, 0.1);
}

.ticket-stat-resolved-text {
    color: #198754;
}

/* Permission Items */
.permission-item-bg {
    background: rgba(80, 84, 254, 0.05);
}

.permission-icon-success {
    color: #198754;
}

/* ========================================
   CONNECTED USERS TABLE COMPONENTS
   ======================================== */

/* Table Header */
.table-header-primary {
    background: rgba(80, 84, 254, 0.05);
}

.table-header-text-primary {
    color: #5054FE;
}

/* Server Name */
.server-name-primary {
    color: #5054FE;
}

/* Protocol Badge */
.badge-protocol {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    font-weight: 600;
}

/* User Count Badges */
.badge-user-count-active {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    font-weight: 600;
}

.badge-user-count-inactive {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    font-weight: 600;
}

/* Status Badges */
.badge-status-online {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.badge-status-no-protocol {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.badge-status-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.badge-status-offline {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

/* Protocol Breakdown */
.protocol-breakdown-title {
    color: #5054FE;
}

.protocol-card-border {
    border-top: 3px solid #6366f1;
}

.protocol-card-count {
    color: #6366f1;
}

/* ========================================
   NOTIFICATIONS COMPONENTS
   ======================================== */

/* Badge Width */
.badge-fit-content {
    width: fit-content;
}

/* Error Text Small */
.error-text-small {
    font-size: 0.75rem;
}

/* Modal Display */
.modal-show {
    display: block;
    background: rgba(0, 0, 0, 0.5);
}

/* Status Icons */
.status-icon-large {
    font-size: 3rem;
}

/* Spinning Animation */
.icon-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   VPN ACCOUNT COMPONENTS
   ======================================== */

/* VPS Server Badge */
.badge-vps-server {
    background-color: rgba(80, 84, 254, 0.1);
    color: #5054FE;
    border: 1px solid #5054FE;
}

/* Action Buttons */
.btn-config {
    border-color: #3b82f6;
    color: #3b82f6;
}

.btn-delete-outline {
    border-color: #ef4444;
    color: #ef4444;
}

/* Empty State */
.empty-state-icon {
    color: #5054FE;
    opacity: 0.3;
}

.empty-state-title {
    color: #5054FE;
}

/* ========================================
   VOUCHER MANAGER COMPONENTS
   ======================================== */

/* Form Select Auto Width */
.form-select-auto {
    width: auto;
}

/* Dropdown Menu Width */
.dropdown-menu-wide {
    min-width: 250px;
}

/* Voucher Code Input */
.input-uppercase {
    text-transform: uppercase;
}

/* ========================================
   VPS METRICS COMPONENTS
   ======================================== */

/* Chart Heights */
.chart-height-200 {
    height: 200px;
}

.chart-health {
    height: 150px;
    width: 150px;
}

/* ========================================
   TICKET MANAGER COMPONENTS
   ======================================== */

/* Attachment Thumbnails */
.attachment-thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
}

/* Delete Button on Thumbnail */
.btn-delete-thumbnail {
    width: 16px;
    height: 16px;
    line-height: 1;
    top: 12px;
    right: -4px;
    color: #fff;
}

/* Hidden File Input */
.file-input-hidden {
    display: none;
}

/* ========================================
   NAVBAR COMPONENTS
   ======================================== */

/* Notification Dropdown */
.notification-dropdown-scroll {
    max-height: 300px;
}

/* ========================================
   WIDGET COMPONENTS
   ======================================== */

/* Chart Max Height */
.chart-max-height-300 {
    max-height: 300px;
}

/* ========================================
   AUTH COMPONENTS
   ======================================== */

/* Password Input Border Radius */
.input-password-left-rounded {
    border-radius: 10px 0 0 10px;
}

/* ========================================
   CATEGORY COMPONENTS
   ======================================== */

/* Category Stat Avatars */
.avatar-category-all {
    background: rgba(215, 215, 215, 0.1);
}

.avatar-category-active {
    background: rgba(34, 197, 94, 0.1);
}

.avatar-category-unused {
    background: rgba(245, 158, 11, 0.1);
}

.avatar-category-top {
    background: rgba(139, 92, 246, 0.1);
}

/* Category User Manager Avatars */
.avatar-users-with-categories {
    background: rgba(80, 84, 254, 0.1);
}

.avatar-multi-assigned {
    background: rgba(215, 215, 215, 0.1);
}

.avatar-no-categories {
    background: rgba(245, 158, 11, 0.1);
}

/* Category Dropdown */
.dropdown-menu-category {
    min-width: 220px;
}

/* ========================================
   USER MANAGEMENT COMPONENTS
   ======================================== */

/* User Action Buttons */
.btn-edit-user {
    border-color: #f59e0b;
    color: #f59e0b;
}

/* ========================================
   SUB-SERVER COMPONENTS
   ======================================== */

/* Fallback Server Section */
.fallback-server-section {
    background-color: #f8f9fa;
}

/* ========================================
   ROLE PERMISSION COMPONENTS
   ======================================== */

/* Nav Link Cursor */
.nav-link-clickable {
    cursor: pointer;
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 768px) {
    .system-health-progress {
        width: 100px;
        height: 6px;
    }
    
    .chart-height-200 {
        height: 150px;
    }
    
    .badge-status-lg {
        font-size: 0.9rem;
        min-width: 80px;
    }
    
    .list-label-width {
        min-width: 100px;
    }
}
