/* Steam Support Panel Styles */
:root {
    --steam-dark: #171a21;
    --steam-darker: #0e141b;
    --steam-accent: #1a9fff;
    --steam-accent-hover: #1b8bcc;
    --steam-text: #e6e6e6;
    --steam-text-secondary: #8f98a0;
    --steam-border: #2a475e;
    --steam-card-bg: #1b2838;
    --steam-card-hover: #2a3f5a;
    --steam-header-bg: #171a21;
    --steam-sidebar-bg: #1b2838;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

body {
    background-color: #1b2838;
    color: var(--steam-text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--steam-accent);
    transition: color 0.2s;
}

a:hover {
    color: var(--steam-text);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 2px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background-color: #5c7e10;
    color: #d2efa9;
    border: 1px solid #5f9f11;
}

.btn-primary:hover {
    background-color: #6e8f1f;
    color: #e4f7c6;
}

.btn-secondary {
    background-color: rgba(0, 0, 0, 0.2);
    color: #66c0f4;
    border: 1px solid #66c0f4;
}

.btn-secondary:hover {
    background-color: rgba(102, 192, 244, 0.2);
    color: #ffffff;
}

.btn-block {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 5px 0;
}

.btn-support {
    background: linear-gradient(to right, #75b022 5%, #588a1b 95%);
    color: #e3f7ff;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
}

.btn-support:hover {
    background: linear-gradient(to right, #8bc53f 5%, #6a9e23 95%);
    color: #ffffff;
}

/* Header */
.steam-header {
    background-color: var(--steam-header-bg);
    border-bottom: 1px solid var(--steam-border);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 30px;
}

.logo span {
    color: #b8b6b4;
    font-size: 18px;
    font-weight: 400;
}

.main-nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a {
    color: #b8b6b4;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 2px;
}

.main-nav a:hover, .main-nav a.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Status Overview */
.status-overview {
    padding: 10px 0;
}

.status-overview .status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #b8b6b4;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-overview .status-item:last-child {
    border-bottom: none;
}

.status-overview .status-item i {
    width: 16px;
    text-align: center;
    color: #66c0f4;
}

/* Stat Cards */
.stat-card {
    background: var(--steam-card-bg);
    border-radius: 6px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(102, 192, 244, 0.2);
}

.stat-card i {
    font-size: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 192, 244, 0.1);
    color: #66c0f4;
}

.stat-number {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: #8f98a0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 2px;
}

/* Hide trend indicators */
.stat-trend,
.stat-badge {
    display: none;
}

/* Badge */
.badge {
    background: #e74c3c;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

/* Quick Actions */
.quick-actions .card {
    height: 100px;
}

.quick-actions .card i {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Welcome Banner */
.welcome-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a3a53;
    padding: 20px 30px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #66c0f4;
}

.welcome-content h1 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 500;
}

.welcome-content p {
    margin: 5px 0 0;
    color: #8f98a0;
    font-size: 13px;
}

.system-status {
    text-align: right;
}

.last-updated {
    display: block;
    font-size: 11px;
    color: #8f98a0;
    margin-top: 4px;
}

/* Navigation Icons */
.main-nav a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Main Content Layout */
.content-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
    min-height: calc(100vh - 180px);
}

/* Sidebar */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    background-color: #316282;
    border: 1px solid #1a3d5a;
    border-radius: 3px;
    color: #fff;
    font-size: 14px;
}

.search-box input::placeholder {
    color: #a4b8cc;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a4b8cc;
}

.sidebar-section {
    background-color: var(--steam-card-bg);
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar-section h3 {
    background: linear-gradient(to right, #75b022 5%, #588a1b 95%);
    color: #e3f7ff;
    font-size: 12px;
    padding: 10px 15px;
    text-transform: uppercase;
    font-weight: 600;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-section li:last-child {
    border-bottom: none;
}

.sidebar-section a {
    display: block;
    padding: 12px 15px;
    color: #b8b6b4;
    font-size: 14px;
    transition: all 0.2s;
}

.sidebar-section a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    padding-left: 20px;
}

.sidebar-section i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #66c0f4;
}

/* Main Content */
.main-content {
    flex-grow: 1;
}

.welcome-banner {
    background: linear-gradient(90deg, #1e3c5f 0%, #2a3f5f 100%);
    border-radius: 4px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.welcome-banner h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 500;
}

.welcome-banner p {
    color: #b8b6b4;
    font-size: 15px;
}

.quick-links {
    margin-bottom: 30px;
}

.quick-links h2, .recent-articles h2 {
    font-size: 16px;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--steam-border);
    font-weight: 500;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.card {
    background-color: var(--steam-card-bg);
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    color: #b8b6b4;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    background-color: var(--steam-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}

.card i {
    font-size: 30px;
    margin-bottom: 15px;
    color: #66c0f4;
}

.card span {
    font-size: 14px;
    font-weight: 500;
}

/* Article List */
/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 {
    margin: 0;
    font-size: 16px;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 500;
    border-bottom: none;
    padding: 0;
}

.view-all {
    font-size: 13px;
    color: #66c0f4;
    text-decoration: none;
    transition: color 0.2s;
}

.view-all:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Ticket List */
.ticket-list {
    background-color: var(--steam-card-bg);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.ticket-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.ticket-item:last-child {
    border-bottom: none;
}

.ticket-item:hover {
    background-color: var(--steam-card-hover);
}

.ticket-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.ticket-id {
    font-family: 'Courier New', monospace;
    color: #8f98a0;
    font-size: 12px;
    min-width: 50px;
}

.ticket-priority {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 2px;
}

.ticket-priority-high {
    background-color: #a74343;
    color: #fff;
}

.ticket-title {
    flex-grow: 1;
    font-weight: 500;
    color: #ffffff;
}

.ticket-time {
    font-size: 12px;
    color: #8f98a0;
    white-space: nowrap;
}

/* User Management */
.user-management {
    background: var(--steam-card-bg);
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.user-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-box {
    position: relative;
    width: 250px;
}

.search-box input {
    width: 100%;
    padding: 8px 12px 8px 35px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    color: #fff;
    font-size: 14px;
}

.search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #8f98a0;
    font-size: 14px;
}

/* User Table */
.user-table-container {
    overflow-x: auto;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.user-table th {
    text-align: left;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    color: #8f98a0;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.user-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.user-table tbody tr:hover {
    background: rgba(102, 192, 244, 0.05);
}

/* Table Cells */
.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    color: #fff;
    font-weight: 500;
}

.user-email {
    color: #8f98a0;
    font-size: 13px;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.status-badge.inactive {
    background: rgba(149, 165, 166, 0.15);
    color: #95a5a6;
}

/* Role Tags */
.role-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.role-tag.admin {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
}

.role-tag.moderator {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.role-tag.user {
    background: rgba(127, 140, 141, 0.15);
    color: #7f8c8d;
}

/* Action Buttons */
.btn-icon {
    background: none;
    border: none;
    color: #8f98a0;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.2s;
}

.btn-icon:hover {
    color: #66c0f4;
    background: rgba(102, 192, 244, 0.1);
}

.btn-icon.text-danger:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* Table Footer */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.table-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-info {
    color: #8f98a0;
    font-size: 13px;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.form-control {
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    color: #fff;
    font-size: 13px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .user-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .search-box {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .table-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

.ticket-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #8f98a0;
}

.ticket-meta i {
    margin-right: 5px;
    color: #66c0f4;
    width: 12px;
    text-align: center;
}

/* Knowledge Base */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.article-card {
    background-color: var(--steam-card-bg);
    border-radius: 4px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.article-card:hover {
    background-color: var(--steam-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.article-card i {
    font-size: 20px;
    color: #66c0f4;
    margin-top: 3px;
}

.article-card h3 {
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 5px;
    font-weight: 500;
}

.article-card p {
    font-size: 13px;
    color: var(--steam-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Priority Colors */
.priority-high {
    border-left: 3px solid #e74c3c;
}

.priority-medium {
    border-left: 3px solid #f39c12;
}

.priority-low {
    border-left: 3px solid #2ecc71;
}

.article-item {
    display: block;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover {
    background-color: var(--steam-card-hover);
    padding-left: 25px;
}

.article-item h3 {
    color: #66c0f4;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 500;
}

.article-item p {
    color: var(--steam-text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

/* Footer */
.steam-footer {
    background-color: var(--steam-darker);
    padding: 20px 0;
    border-top: 1px solid var(--steam-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #8f98a0;
    font-size: 12px;
}

.footer-links a:hover {
    color: #ffffff;
}

.copyright {
    color: #8f98a0;
    font-size: 11px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 1200px) {
    .welcome-banner {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
    }
    
    .system-status {
        margin-top: 15px;
        text-align: left;
        width: 100%;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
}

@media (max-width: 768px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-card i {
        margin-bottom: 10px;
    }
    
    .quick-actions .card {
        height: auto;
        padding: 15px;
    }
    
    .user-info {
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .ticket-preview {
        flex-wrap: wrap;
    }
    
    .ticket-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .user-actions {
        margin-top: 10px;
    }
    
    .welcome-banner h1 {
        font-size: 24px;
    }
    
    .card {
        height: 100px;
    }
    
    .card i {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .card span {
        font-size: 12px;
    }
}
