/* Admin Panel Specific Styles */
.admin-body {
    background: linear-gradient(135deg, #000000 0%, #1a0f00 25%, #2d1a00 50%, #1a0f00 75%, #000000 100%);
    background-attachment: fixed;
}

.admin-header {
    background: var(--darker-bg);
    padding: 1.5rem 0;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-logo {
    height: 50px;
}

.admin-header h1 {
    font-size: 1.5rem;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-main {
    padding: 2rem 0;
    min-height: calc(100vh - 100px);
}

/* Login Section */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-box {
    background: linear-gradient(135deg, rgba(26, 15, 0, 0.95) 0%, rgba(0, 0, 0, 0.95) 100%);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 153, 51, 0.5);
    box-shadow: 0 20px 60px rgba(255, 153, 51, 0.2);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-icon i {
    font-size: 2.5rem;
}

.login-box h2 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.login-box > p {
    color: var(--gray-text);
    margin-bottom: 2rem;
}

.login-hint {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--gray-text);
}

.login-hint code {
    background: rgba(0, 212, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--accent-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-text);
    font-weight: 500;
}

.form-group label i {
    color: var(--accent-color);
    margin-right: 5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 153, 51, 0.3);
    border-radius: 10px;
    color: var(--light-text);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--gray-text);
    font-size: 0.85rem;
}

.form-group small a {
    color: var(--accent-color);
    text-decoration: none;
}

.form-section-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.1), rgba(255, 102, 0, 0.05));
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title i {
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(26, 15, 0, 0.8) 0%, rgba(0, 0, 0, 0.8) 100%);
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.stat-icon.founders {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon.members {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-icon.total {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-info h3 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
    color: var(--light-text);
}

.stat-info p {
    color: var(--gray-text);
    font-size: 1rem;
}

/* Management Section */
.management-section {
    background: linear-gradient(135deg, rgba(26, 15, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 153, 51, 0.2);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 153, 51, 0.2);
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--gray-text);
    padding: 1rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--light-text);
}

.tab-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Members List */
.members-list {
    display: grid;
    gap: 1rem;
}

.member-item {
    background: linear-gradient(135deg, rgba(26, 15, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.member-item:hover {
    border-color: var(--accent-color);
}

.member-item-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.member-item-info {
    flex: 1;
}

.member-item-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 0.25rem;
}

.member-item-role {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.member-item-description {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.member-item-joined {
    color: var(--gray-text);
    font-size: 0.85rem;
}

.member-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.icon-btn.edit {
    background: rgba(0, 212, 255, 0.2);
    color: var(--accent-color);
}

.icon-btn.edit:hover {
    background: var(--accent-color);
    color: var(--light-text);
}

.icon-btn.delete {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary-color);
}

.icon-btn.delete:hover {
    background: var(--primary-color);
    color: var(--light-text);
}

/* Actions Section */
.actions-section {
    background: linear-gradient(135deg, rgba(26, 15, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 153, 51, 0.2);
}

.actions-section h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-btn {
    background: linear-gradient(135deg, rgba(26, 15, 0, 0.8) 0%, rgba(0, 0, 0, 0.8) 100%);
    border: 2px solid rgba(255, 153, 51, 0.3);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--light-text);
}

.action-btn:hover {
    border-color: var(--accent-color);
    background: rgba(0, 212, 255, 0.1);
}

.action-btn i {
    font-size: 2rem;
    color: var(--accent-color);
}

.action-btn.danger:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

.action-btn.danger i {
    color: var(--primary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #1a0f00 0%, #000000 100%);
    border-radius: 20px;
    border: 2px solid var(--accent-color);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(255, 153, 51, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 2px solid rgba(255, 153, 51, 0.3);
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.1) 0%, transparent 100%);
}

.modal-header h2 {
    color: var(--accent-color);
    margin: 0;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--light-text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--primary-color);
}

.modal-body {
    padding: 2rem;
}

#member-form {
    padding: 2rem;
}

/* Checkbox Label */
.form-group label {
    display: flex;
    align-items: center;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions button {
    flex: 1;
}

#import-data-textarea {
    width: 100%;
    min-height: 200px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 153, 51, 0.3);
    border-radius: 10px;
    padding: 1rem;
    color: var(--light-text);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 1rem 0;
    resize: vertical;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray-text);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
}

/* Content Header */
.content-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-end;
}

/* Items List */
.items-list {
    display: grid;
    gap: 1rem;
}

.item-card {
    background: linear-gradient(135deg, rgba(26, 15, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.item-card:hover {
    border-color: var(--accent-color);
}

.item-card.inactive {
    opacity: 0.5;
}

.item-card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.item-card-info {
    flex: 1;
}

.item-card-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 0.25rem;
}

.item-card-description {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.item-card-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.item-card-status.active {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success-color);
}

.item-card-status.inactive {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary-color);
}

.item-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .header-left {
        flex-direction: column;
    }

    .stats-grid,
    .actions-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .tab-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .tab-btn.active {
        border-left-color: var(--accent-color);
    }

    .member-item {
        flex-direction: column;
        text-align: center;
    }

    .member-item-actions {
        justify-content: center;
    }

    .form-actions {
        flex-direction: column;
    }
}

/* Checkbox Styling */
input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
    transform: scale(1.2);
    accent-color: var(--accent-color);
}

.form-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Image Upload Styling */
input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.image-preview {
    margin-top: 1rem;
    text-align: center;
}

.image-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    object-fit: cover;
}

.member-avatar,
.member-item-avatar {
    position: relative;
    overflow: hidden;
}

.member-avatar img,
.member-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Main Games Section */
.main-games-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 153, 51, 0.2);
}

.main-games-list {
    display: grid;
    gap: 1rem;
}

.main-game-item {
    background: linear-gradient(135deg, rgba(26, 15, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%);
    padding: 1rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.main-game-item:hover {
    border-color: var(--accent-color);
}

.main-game-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-game-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.main-game-hours {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin: 0.5rem 0;
}

.toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 24px;
    border: 2px solid rgba(255, 107, 53, 0.5);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: var(--primary-color);
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: rgba(0, 255, 136, 0.2);
    border-color: var(--success-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
    background-color: var(--success-color);
}

.toggle-slider:hover {
    opacity: 0.9;
}
