
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1f2937 0%, #000000 50%, #1f2937 100%);
    color: #ffffff;
    overflow-x: hidden;
    height: 100vh;
}

/* Login Screen Styles */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}

.login-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(16, 185, 129, 0.2) 0%, transparent 50%, rgba(16, 185, 129, 0.2) 100%);
}

.login-container {
    position: relative;
    width: 100%;
    max-width: 28rem;
}

.login-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(to right, #10b981, #059669);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
}

.login-icon i {
    font-size: 2rem;
    color: white;
}

.login-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #d1d5db;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 1rem;
    transition: all 0.2s;
}

.input-group input::placeholder {
    color: #9ca3af;
}

.input-group input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.toggle-password {
    position: absolute;
    right: 3.1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: white;
}

.login-btn {
    width: 100%;
    background: linear-gradient(to right, #10b981, #059669);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    background: linear-gradient(to right, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
}

.login-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.login-footer a {
    color: #10b981;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.login-footer a:hover {
    color: #059669;
}

/* Dashboard Styles - FIXED LAYOUT */
.dashboard {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar Styles - FIXED */
.sidebar {
    width: 16rem;
    min-width: 16rem;
    height: 100vh;
    background: linear-gradient(to bottom, #1f2937, #000000);
    border-right: 1px solid #374151;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #374151;
}

.logo {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(to right, #10b981, #059669);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo i {
    font-size: 1.5rem;
    color: white;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-text p {
    font-size: 0.875rem;
    color: #9ca3af;
}

.sidebar-menu {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.menu-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.menu-item.active {
    background: linear-gradient(to right, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.menu-item .fas:first-child {
    width: 1.25rem;
    margin-right: 0.75rem;
}

.menu-item .fa-chevron-right {
    transition: transform 0.2s;
}

.menu-item.active .fa-chevron-right {
    transform: rotate(90deg);
}

.menu-item:hover .fa-chevron-right {
    transform: translateX(0.25rem);
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #374151;
}

.logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #9ca3af;
    background: none;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Main Content Styles - FIXED */
.main-content {
    flex: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header Styles - FIXED */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #374151;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    min-height: 4rem;
}

.search-bar {
    position: relative;
    max-width: 28rem;
    flex: 1;
}

.search-bar i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-bar input {
    width: 100%;
    padding: 0.5rem 0.5rem 0.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #374151;
    border-radius: 0.5rem;
    color: white;
    transition: all 0.2s;
}

.search-bar input::placeholder {
    color: #9ca3af;
}

.search-bar input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-btn {
    position: relative;
    padding: 0.5rem;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.notification-btn:hover {
    color: white;
}

.notification-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 0.75rem;
    height: 0.75rem;
    background: #10b981;
    border-radius: 50%;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}

.user-avatar {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(to right, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar i {
    font-size: 1rem;
    color: white;
}

.user-info {
    font-size: 0.875rem;
}

.user-name {
    font-weight: 500;
}

.user-email {
    color: #9ca3af;
}

/* Content Styles - FIXED */
.content {
    flex: 1;
    overflow-y: auto;
    height: calc(100vh - 4rem);
}

.section {
    display: none;
    padding: 1.5rem;
    height: 100%;
}

.section.active {
    display: block;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #9ca3af;
}

/* Substitua as regras existentes por estas: */
.server-status-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator.online {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.status-indicator.maintenance {
    background: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.status-indicator.offline {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.server-status-text {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.primary-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-btn:hover {
    background: linear-gradient(to right, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, #10b981, #059669);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.stat-icon.emerald {
    background: linear-gradient(to right, #10b981, #059669);
}

.stat-icon.blue {
    background: linear-gradient(to right, #3b82f6, #1d4ed8);
}

.stat-icon.purple {
    background: linear-gradient(to right, #8b5cf6, #7c3aed);
}

.stat-icon.yellow {
    background: linear-gradient(to right, #f59e0b, #d97706);
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #9ca3af;
    font-size: 0.875rem;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.stat-trend.positive {
    color: #10b981;
}

.stat-trend.negative {
    color: #ef4444;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.activity-card, .servers-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.activity-card h2, .servers-card h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.activity-card h2 i, .servers-card h2 i {
    color: #10b981;
}

.activity-list, .servers-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-item, .server-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.activity-item:hover, .server-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.activity-dot, .server-status {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.activity-dot.success, .server-status.online {
    background: #10b981;
}

.activity-dot.info {
    background: #3b82f6;
}

.activity-dot.warning, .server-status.maintenance {
    background: #f59e0b;
}

.server-status.offline {
    background: #ef4444;
}

.activity-content {
    flex: 1;
}

.activity-title, .server-name {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.activity-desc, .server-ping {
    color: #9ca3af;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.activity-time {
    color: #6b7280;
    font-size: 0.75rem;
}

.server-item {
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
}

.server-info {
    flex: 1;
    margin-left: 0.75rem;
}

.server-load {
    text-align: right;
}

.load-value {
    font-weight: 500;
    font-size: 0.875rem;
}

.load-label {
    color: #9ca3af;
    font-size: 0.75rem;
}

/* Filters Card */
.filters-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

.search-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    position: relative;
    flex: 1;
}

.search-input i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-input input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #374151;
    border-radius: 0.75rem;
    color: white;
    transition: all 0.2s;
}

.search-input input::placeholder {
    color: #9ca3af;
}

.search-input input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.filter-select {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-select i {
    color: #9ca3af;
}

.filter-select select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #374151;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: white;
    cursor: pointer;
}

.filter-select select:focus {
    outline: none;
    border-color: #10b981;
}

.filter-select option {
    background: #1f2937;
    color: white;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mini-stat {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mini-stat-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.mini-stat.emerald .mini-stat-icon {
    background: linear-gradient(to right, #10b981, #059669);
}

.mini-stat.blue .mini-stat-icon {
    background: linear-gradient(to right, #3b82f6, #1d4ed8);
}

.mini-stat.purple .mini-stat-icon {
    background: linear-gradient(to right, #8b5cf6, #7c3aed);
}

.mini-stat.yellow .mini-stat-icon {
    background: linear-gradient(to right, #f59e0b, #d97706);
}

.mini-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.mini-stat-label {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.product-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

.product-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.product-info h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.product-info p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.product-status {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-status.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.product-status.paused {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.product-actions button {
    padding: 0.5rem;
    color: #9ca3af;
    background: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.product-actions button:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.product-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.product-metric h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.product-metric.revenue h4 {
    color: #10b981;
}

.product-metric p {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* API Keys Grid */
.api-keys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.api-key-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.api-key-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.api-key-info h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.api-key-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.api-key-display code {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    color: #10b981;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.api-key-display button {
    padding: 0.25rem;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.api-key-display button:hover {
    color: white;
}

.api-key-status {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.api-key-status.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.api-key-status.inactive {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.api-key-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    font-size: 0.875rem;
}

.api-key-stat p:first-child {
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.api-key-stat p:last-child {
    font-weight: 500;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.news-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px) scale(1.02);
}

.news-image {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #10b981;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.news-category {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

.news-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-summary {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

.news-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-actions button:first-child {
    padding: 0.5rem;
    color: #9ca3af;
    background: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.news-actions button:first-child:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.news-actions button:last-child {
    background: linear-gradient(to right, #10b981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.news-actions button:last-child:hover {
    background: linear-gradient(to right, #059669, #047857);
}

/* Mods List */
.mods-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mod-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.mod-card:hover {
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
}

.mod-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
    flex-shrink: 0;
}

.mod-content {
    flex: 1;
}

.mod-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.mod-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    transition: color 0.2s;
}

.mod-card:hover .mod-title {
    color: #10b981;
}

.mod-author {
    color: #9ca3af;
    font-size: 0.875rem;
}

.mod-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(16, 185, 129, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}

.mod-rating i {
    color: #10b981;
    font-size: 1rem;
}

.mod-rating span {
    color: #10b981;
    font-size: 0.875rem;
    font-weight: 500;
}

.mod-description {
    color: #d1d5db;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.mod-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mod-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

.mod-downloads {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mod-category {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.mod-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mod-actions button {
    padding: 0.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.mod-actions button:first-child {
    color: #9ca3af;
    background: none;
}

.mod-actions button:first-child:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.mod-actions button:last-child {
    background: linear-gradient(to right, #10b981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.mod-actions button:last-child:hover {
    background: linear-gradient(to right, #059669, #047857);
}

/* Versions Timeline */
.versions-timeline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.versions-timeline h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.version-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.version-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 3rem;
    width: 1px;
    height: calc(100% - 1rem);
    background: linear-gradient(to bottom, rgba(16, 185, 129, 0.5), transparent);
}

.version-timeline {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.version-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(to right, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.version-icon i {
    color: white;
    font-size: 1.5rem;
}

.version-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.version-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

.version-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.version-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.version-title h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.version-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.version-badge.stable {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.version-badge.beta {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.version-badge.alpha {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.version-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

.version-meta div {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.version-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.version-actions button:first-child {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.version-actions button:first-child:hover {
    background: rgba(255, 255, 255, 0.2);
}

.version-actions button:last-child {
    padding: 0.5rem 1rem;
    background: linear-gradient(to right, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.version-actions button:last-child:hover {
    background: linear-gradient(to right, #059669, #047857);
}

.version-changes {
    margin-top: 0.75rem;
}

.version-changes h4 {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.version-changes ul {
    list-style: none;
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.5;
}

.version-changes li {
    margin-bottom: 0.25rem;
}

/* Responsive Design - FIXED */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .api-keys-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 0;
        min-width: 0;
        position: fixed;
        left: -16rem;
        z-index: 50;
        transition: left 0.3s;
    }
    
    .sidebar.open {
        left: 0;
        width: 16rem;
        min-width: 16rem;
    }
    
    .main-content {
        width: 100%;
    }
    
    .header {
        padding: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .user-info {
        display: none;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}