/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
}

/* Login Section */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-color: #1a1a1a;
}

.login-form {
    background-color: #2d2d2d;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
}

.login-tabs {
    display: flex;
    margin-bottom: 30px;
    background-color: #3a3a3a;
    border-radius: 8px;
    overflow: hidden;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background-color: transparent;
    color: #cccccc;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.tab-button.active {
    background-color: #4a5568;
    color: #ffffff;
}

.tab-button:hover:not(.active) {
    background-color: #4a4a4a;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #cccccc;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #4a5568;
    border-radius: 6px;
    background-color: #3a3a3a;
    color: #ffffff;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #6b7db3;
}

.form-group input::placeholder {
    color: #888888;
}

.input-hint {
    display: block;
    color: #888888;
    font-size: 12px;
    margin-top: 4px;
    font-style: italic;
}

.success-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 12px;
    background-color: #2d5a3d;
    border-radius: 6px;
    color: #4ade80;
}

.success-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #4ade80;
    color: #2d5a3d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 14px;
    font-weight: bold;
}

.login-button {
    width: 100%;
    padding: 12px 16px;
    background-color: #4a5568;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-bottom: 16px;
}

.login-button:hover {
    background-color: #5a6578;
}

.back-button {
    width: 100%;
    padding: 12px 16px;
    background-color: transparent;
    color: #cccccc;
    border: 1px solid #4a5568;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #4a5568;
    color: #ffffff;
}

.disclaimer {
    margin-top: 20px;
    padding: 12px;
    background-color: #3a3a3a;
    border-radius: 6px;
    font-size: 12px;
    color: #aaaaaa;
    text-align: center;
}

/* Dashboard Section */
.dashboard-container {
    min-height: 100vh;
    background-color: #1a1a1a;
    padding: 20px;
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    background-color: #2d2d2d;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.profile-avatar {
    margin-right: 20px;
}

.profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #4a5568;
}

.profile-info h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.profile-level {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 8px;
}

.profile-platform {
    margin-bottom: 8px;
}

.platform-label {
    color: #888888;
    font-size: 14px;
    margin-right: 8px;
}

.platform-value {
    color: #ffffff;
    font-weight: 500;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.profile-linked {
    margin-bottom: 12px;
}

.linked-label {
    color: #888888;
    font-size: 14px;
    margin-right: 8px;
    display: block;
    margin-bottom: 4px;
}

.linked-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.linked-platform {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.profile-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.stat-label {
    font-size: 16px;
}

.profile-dates {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #aaaaaa;
}

/* Navigation */
.navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    padding: 8px;
    background-color: #2d2d2d;
    border-radius: 8px;
    max-height: 120px;
    overflow-y: auto;
}

.nav-button {
    padding: 8px 16px;
    background-color: transparent;
    color: #cccccc;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-button:hover,
.nav-button.active {
    background-color: #4a5568;
    color: #ffffff;
}

/* Content Sections */
.content-sections {
    position: relative;
}

.content-section {
    display: none;
    background-color: #2d2d2d;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.content-section.active {
    display: block;
}

.section-header {
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.count {
    color: #aaaaaa;
    font-weight: normal;
}

/* Items Grid */
.items-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rarity-group {
    margin-bottom: 20px;
}

.rarity-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    width: fit-content;
}

.rarity-label.silver {
    background-color: #c0c0c0;
    color: #333333;
}

.rarity-label.copper {
    background-color: #b87333;
    color: #ffffff;
}

.rarity-label.gold {
    background-color: #ffd700;
    color: #333333;
}

.rarity-label.platinum {
    background-color: #e5e4e2;
    color: #333333;
}

.rarity-label.elite {
    background-color: #ff6b35;
    color: #ffffff;
}

.rarity-label.epic {
    background-color: #a855f7;
    color: #ffffff;
}

.rarity-label.rare {
    background-color: #3b82f6;
    color: #ffffff;
}

.rarity-label.common {
    background-color: #6b7280;
    color: #ffffff;
}

.rarity-label.legendary {
    background-color: #f59e0b;
    color: #ffffff;
}

.rarity-label.black-ice {
    background-color: #1f2937;
    color: #ffffff;
}

.items-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.item-card {
    background-color: #3a3a3a;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.item-card:hover {
    background-color: #4a5568;
    transform: translateY(-2px);
}

.item-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4a5568;
    border-radius: 6px;
}

.item-name {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-text {
    color: #888888;
    font-size: 16px;
}

/* Proxy Manager Styles */
.proxy-manager {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.proxy-form, .proxy-list, .proxy-test, .proxy-controls {
    background-color: #3a3a3a;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #4a5568;
}

.proxy-form h4, .proxy-list h4, .proxy-test h4, .proxy-controls h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 16px;
}

.proxy-list-container {
    min-height: 100px;
}

.proxy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #2d2d2d;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #4a5568;
}

.proxy-info {
    flex: 1;
}

.proxy-host {
    color: #ffffff;
    font-family: monospace;
    margin-bottom: 4px;
}

.proxy-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.proxy-status.active {
    background-color: #4ade80;
    color: #166534;
}

.proxy-status.inactive {
    background-color: #f87171;
    color: #991b1b;
}

.proxy-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 4px 8px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small.remove {
    background-color: #dc2626;
    color: white;
}

.btn-small.remove:hover {
    background-color: #b91c1c;
}

.btn-small.set-active {
    background-color: #059669;
    color: white;
}

.btn-small.set-active:hover {
    background-color: #047857;
}

#test-results {
    margin-top: 15px;
    padding: 10px;
    background-color: #2d2d2d;
    border-radius: 6px;
    min-height: 20px;
}

.test-result {
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 4px;
    font-size: 14px;
}

.test-result.working {
    background-color: #064e3b;
    color: #6ee7b7;
    border: 1px solid #059669;
}

.test-result.failed {
    background-color: #7f1d1d;
    color: #fca5a5;
    border: 1px solid #dc2626;
}

.btn-primary, .btn-secondary, .btn-danger {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-primary:disabled {
    background-color: #6b7280;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-danger {
    background-color: #dc2626;
    color: white;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.proxy-form .form-group {
    margin-bottom: 15px;
}

.proxy-form label {
    display: block;
    color: #cccccc;
    margin-bottom: 5px;
    font-size: 14px;
}

.proxy-form input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #4a5568;
    border-radius: 4px;
    background-color: #2d2d2d;
    color: #ffffff;
    font-size: 14px;
}

.proxy-form input:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Footer */
.footer {
    margin-top: 50px;
    padding: 30px 20px;
    background-color: #0f0f0f;
    border-top: 1px solid #333333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-text p {
    color: #888888;
    font-size: 12px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .profile-stats {
        justify-content: center;
    }

    .profile-dates {
        justify-content: center;
    }

    .navigation {
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .nav-button {
        flex-shrink: 0;
    }

    .items-row {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .empty-state {
        padding: 20px 10px;
    }

    .empty-icon {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .login-form {
        padding: 20px;
    }

    .dashboard-container {
        padding: 10px;
    }

    .profile-header {
        padding: 20px;
    }

    .content-section {
        padding: 20px;
    }

    .items-row {
        grid-template-columns: 1fr;
    }
}
