/* Components Styles */

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 0.25rem;
}

.badge-sm {
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
}

.badge-lg {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.badge-primary {
    background: var(--gradient-gold);
    color: var(--rise-dark);
    font-weight: 700;
    box-shadow: var(--shadow-gold);
}

.badge-secondary {
    background: var(--gradient-bronze);
    color: white;
    font-weight: 700;
}

.badge-accent {
    background: var(--gradient-gold);
    color: var(--rise-dark);
    font-weight: 700;
}

.badge-outline {
    background: transparent;
    border: 1px solid currentColor;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rise-light-gray);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rise-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-subtitle {
    color: var(--rise-gray);
    font-size: 0.875rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4CAF50;
    color: #2E7D32;
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #F44336;
    color: #C62828;
}

.alert-warning {
    background: rgba(255, 152, 0, 0.1);
    border-left: 4px solid #FF9800;
    color: #EF6C00;
}

.alert-info {
    background: rgba(33, 150, 243, 0.1);
    border-left: 4px solid #2196F3;
    color: #1565C0;
}

/* Loader */
.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--rise-light-gray);
    border-top-color: var(--rise-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.loader-large {
    width: 60px;
    height: 60px;
    border-width: 4px;
}

/* Progress Bar */
.progress {
    height: 8px;
    background: var(--rise-light-gray);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar {
    height: 100%;
    background: var(--rise-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--rise-light-gray);
    margin-bottom: 1.5rem;
}

.tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--rise-gray);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab:hover {
    color: var(--rise-primary);
}

.tab.active {
    color: var(--rise-primary);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--rise-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-item {
    display: flex;
}

.page-link {
    padding: 0.5rem 1rem;
    border: 1px solid var(--rise-light-gray);
    background: white;
    color: var(--rise-dark);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.page-link:hover {
    background: var(--rise-light);
    border-color: var(--rise-primary);
}

.page-link.active {
    background: var(--rise-primary);
    color: white;
    border-color: var(--rise-primary);
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--rise-light-gray);
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background: var(--rise-dark);
    color: white;
    text-align: center;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
    font-weight: 500;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--rise-dark) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Avatar Group */
.avatar-group {
    display: flex;
}

.avatar-group .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -8px;
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
}

.avatar-xl {
    width: 80px;
    height: 80px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--rise-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--rise-gray);
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rise-dark);
    margin-bottom: 0.5rem;
}

.empty-state-description {
    color: var(--rise-gray);
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--rise-light-gray);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-toggle:hover {
    border-color: var(--rise-primary);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    z-index: 1000;
    display: none;
    animation: fadeIn 0.2s ease;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--rise-dark);
    text-decoration: none;
    transition: var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--rise-light);
    color: var(--rise-primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--rise-light-gray);
    margin: 0.5rem 0;
}

/* Search Box */
.search-box {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--rise-light-gray);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--rise-primary);
    box-shadow: 0 0 0 3px rgba(42, 75, 140, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rise-gray);
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CCCCCC;
    transition: .4s;
    border-radius: 34px;
    border: 1px solid #BBBBBB;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background-color: #D4AF37;
    border-color: #B8941F;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

input:checked + .slider:before {
    transform: translateX(26px);
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--rise-light-gray);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.3rem;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--rise-primary);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--rise-primary);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--rise-gray);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: white;
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: #4CAF50;
}

.status-dot.offline {
    background: var(--rise-gray);
}

.status-dot.busy {
    background: #F44336;
}

.status-dot.away {
    background: #FF9800;
}

/* QR Code Display */
.qr-code-display {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    max-width: 300px;
    margin: 0 auto;
}

.qr-code-display canvas {
    width: 200px !important;
    height: 200px !important;
}

.qr-code-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

/* Network Connection Card */
.connection-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.connection-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.connection-info {
    flex: 1;
}

.connection-name {
    font-weight: 700;
    color: var(--rise-dark);
    margin-bottom: 0.25rem;
}

.connection-details {
    font-size: 0.875rem;
    color: var(--rise-gray);
    display: flex;
    gap: 1rem;
}

.connection-actions {
    display: flex;
    gap: 0.5rem;
}

.connection-date {
    font-size: 0.75rem;
    color: var(--rise-gray);
    font-style: italic;
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--rise-light-gray);
    border-radius: var(--radius-md);
    padding: 3rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--rise-primary);
    background: rgba(42, 75, 140, 0.05);
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.file-upload-icon {
    width: 48px;
    height: 48px;
    background: var(--rise-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--rise-primary);
}

.file-upload-text h4 {
    font-weight: 700;
    color: var(--rise-dark);
    margin-bottom: 0.5rem;
}

.file-upload-text p {
    color: var(--rise-gray);
    font-size: 0.875rem;
}

.file-upload-hint {
    font-size: 0.75rem;
    color: var(--rise-gray);
    margin-top: 1rem;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.content-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.content-thumbnail {
    height: 160px;
    background: linear-gradient(135deg, var(--rise-light) 0%, rgba(212, 175, 55, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rise-gold);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.content-thumbnail::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    transition: transform 0.6s;
}

.content-card:hover .content-thumbnail::before {
    transform: scale(1.2);
}

.content-info {
    padding: 1.5rem;
}

.content-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--rise-light);
    color: var(--rise-gold);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.content-title {
    font-weight: 700;
    color: var(--rise-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.content-description {
    color: var(--rise-gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.content-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--rise-gray);
}

.content-actions {
    display: flex;
    gap: 0.5rem;
}

