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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: #1a1a1a;
    min-height: 100vh;
    padding: 20px;
    color: #e0e0e0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header, .modal-header {
    background: #2d2d2d;
    border-radius: 12px 12px 0 0;
    padding: 30px 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid #3d3d3d;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    text-align: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-top > div {
    flex: 1;
    min-width: 300px;
}

.header h1, .modal-header h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    color: #b0b0b0;
    font-size: 1rem;
    margin-top: 5px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-top: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    color: #b0b0b0;
    background: #2d2d2d;
    border: 1px solid #3d3d3d;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.tab:hover {
    background: #3d3d3d;
    border-color: #4d4d4d;
    color: #ffffff;
    transform: translateY(-2px);
}

.tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.content {
    background: #2d2d2d;
    border-radius: 0 0 12px 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #3d3d3d;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-refresh {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-refresh:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.btn-refresh:active {
    transform: translateY(0);
}

.last-update {
    color: #b0b0b0;
    font-size: 0.85rem;
}

.servers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.server-card {
    background: #252525;
    border: 1px solid #3d3d3d;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.server-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.server-title {
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 700;
}

.server-meta {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-top: 8px;
}

.toggle-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.toggle-icon.expanded {
    transform: rotate(180deg);
}

.server-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #3d3d3d;
    display: none;
    animation: slideDown 0.3s ease;
}

.server-details.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    justify-items: center;
}

.plugins-grid .loading {
    grid-column: 1 / -1;
    width: 100%;
}

.plugin-card {
    background: #1f1f1f;
    border: 2px solid #3d3d3d;
    border-radius: 10px;
    padding: 18px;
    transition: all 0.3s ease;
    position: relative;
}

.plugin-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.plugin-card.updated {
    border-color: #4caf50;
    background: #1f2e1f;
}

.plugin-card.new {
    border-color: #2196f3;
    background: #1f1f2e;
}

.plugin-card.updated::before {
    content: "🆕";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

.plugin-card.new::before {
    content: "✨";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

.plugin-card.updated .plugin-name,
.plugin-card.new .plugin-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.plugin-name {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.plugin-version {
    font-size: 0.85rem;
    color: #b0b0b0;
    margin-bottom: 10px;
}

.plugin-author {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
}

.plugin-files {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-bottom: 12px;
    line-height: 1.8;
    padding: 10px;
    background: #1a1a1a;
    border-radius: 6px;
    border: 1px solid #3d3d3d;
}

.plugin-server {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 8px;
    padding: 4px 8px;
    background: #2d2d2d;
    border-radius: 4px;
    display: inline-block;
}

.plugin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.btn-download-small {
    background: #3d3d3d;
    color: #ffffff;
    border: 1px solid #4d4d4d;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-download-small:hover {
    background: #4d4d4d;
    border-color: #667eea;
    transform: translateY(-1px);
}

.btn-delete {
    background: #dc3545;
    color: #ffffff;
    border: 1px solid #dc3545;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-delete:hover {
    background: #c82333;
    border-color: #bd2130;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.server-header-folders {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.server-stats {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-top: 8px;
    font-weight: 500;
}

.download-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-download-large {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-download-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: #2d2d2d;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-width: 450px;
    width: 100%;
    border: 2px solid #3d3d3d;
}

.login-header {
    text-align: center;
    padding: 40px 40px 20px;
}

.login-header h1 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 700;
}

.login-form {
    padding: 20px 40px 40px;
}

.error-message {
    color: #d32f2f;
    text-align: center;
    margin-top: 15px;
    font-weight: 500;
}

.loading {
    text-align: center;
    padding: 60px 40px;
    color: #b0b0b0;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.btn-logout {
    background: #3d3d3d;
    color: #ffffff;
    border: 1px solid #4d4d4d;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    white-space: nowrap;
}

.btn-logout:hover {
    background: #dc3545;
    border-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.all-plugins-view {
    margin-top: 30px;
}

.plugins-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3d3d3d;
}

.plugins-header h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
}

.plugins-stats {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #3d3d3d;
    background: #252525;
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: #3d3d3d;
    color: #ffffff;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
}

/* Add Collector Page Styles */
.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.info-box {
    background: #252525;
    border-left: 4px solid #667eea;
    padding: 25px;
    margin: 0 0 30px 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.info-box h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 700;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    color: #b0b0b0;
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-box li:before {
    content: "•";
    position: absolute;
    left: 12px;
    font-weight: bold;
    color: #667eea;
    font-size: 1.2rem;
}

.collector-form {
    padding: 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
}

.file-input-wrapper {
    position: relative;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-placeholder {
    border: 2px dashed #3d3d3d;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: #b0b0b0;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #1f1f1f;
}

.file-input-wrapper:hover .file-input-placeholder {
    border-color: #667eea;
    background: #252525;
    color: #ffffff;
}

.text-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #3d3d3d;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #1f1f1f;
    color: #ffffff;
}

.text-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        max-width: 100%;
    }
    
    .header, .modal-header {
        padding: 20px 15px;
        border-radius: 8px 8px 0 0;
    }
    
    .header h1, .modal-header h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    .header-top {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .header-top > div {
        min-width: auto;
        text-align: center;
    }
    
    .btn-logout {
        width: 100%;
        margin-left: 0 !important;
    }
    
    .tabs {
        gap: 5px;
        margin-top: 15px;
    }
    
    .tab {
        padding: 10px 12px;
        font-size: 0.85rem;
        flex: 1;
        min-width: 0;
        text-align: center;
    }
    
    .content {
        padding: 15px;
        border-radius: 0 0 8px 8px;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .btn-refresh {
        width: 100%;
    }
    
    .last-update {
        text-align: center;
        font-size: 0.8rem;
    }
    
    .server-card {
        padding: 15px;
    }
    
    .server-header-folders {
        flex-direction: column;
        gap: 15px;
    }
    
    .server-title {
        font-size: 1.1rem;
    }
    
    .server-meta {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .server-stats {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .download-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-download-large,
    .btn-download-small,
    .btn-delete {
        width: 100%;
        margin: 0;
    }
    
    .plugins-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .plugin-card {
        padding: 15px;
    }
    
    .plugin-name {
        font-size: 1rem;
    }
    
    .plugins-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .plugins-header h2 {
        font-size: 1.2rem;
    }
    
    .plugins-stats {
        font-size: 0.85rem;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        flex: 1;
    }
    
    .info-box {
        padding: 15px;
        margin: 0 0 20px 0;
    }
    
    .info-box h3 {
        font-size: 1rem;
    }
    
    .info-box li {
        font-size: 0.9rem;
        padding: 8px 0;
        padding-left: 25px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    .file-input-placeholder {
        padding: 30px 15px;
        font-size: 0.9rem;
    }
    
    .text-input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .btn-submit {
        padding: 14px;
        font-size: 0.95rem;
    }
    
    .login-box {
        max-width: 100%;
        margin: 10px;
    }
    
    .login-header {
        padding: 30px 20px 15px;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .login-form {
        padding: 15px 20px 30px;
    }
}

@media (max-width: 480px) {
    .header h1, .modal-header h1 {
        font-size: 1.3rem;
    }
    
    .tab {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .server-title {
        font-size: 1rem;
    }
    
    .server-meta {
        font-size: 0.75rem;
    }
    
    .server-stats {
        font-size: 0.8rem;
    }
    
    .btn-download-large,
    .btn-download-small,
    .btn-delete {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .plugin-name {
        font-size: 0.95rem;
    }
    
    .plugin-version {
        font-size: 0.8rem;
    }
    
    .plugin-files {
        font-size: 0.8rem;
        padding: 8px;
    }
}

/* Стили для списка плагинов в скопированных папках */
.plugins-list {
    margin-top: 20px;
    padding: 20px;
    background: #1f1f1f;
    border-radius: 8px;
    border: 1px solid #3d3d3d;
    animation: slideDown 0.3s ease;
}

.plugins-list .plugins-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3d3d3d;
}

.plugins-list .plugins-header h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.plugins-list .plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.plugin-item {
    background: #252525;
    border: 1px solid #3d3d3d;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.plugin-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.plugin-item .plugin-name {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    word-break: break-word;
}

.plugin-item .plugin-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.plugin-item .plugin-version {
    color: #667eea;
    font-size: 0.85rem;
    font-weight: 600;
}

.plugin-item .plugin-author {
    color: #b0b0b0;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .plugins-list {
        padding: 15px;
    }
    
    .plugins-list .plugins-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .plugin-item {
        padding: 12px;
    }
    
    .plugin-item .plugin-name {
        font-size: 0.95rem;
    }
}

/* Стили для секций настроек */
.settings-section {
    background: #252525;
    border: 1px solid #3d3d3d;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
}

.section-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3d3d3d;
}

.color-picker-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-input {
    width: 60px;
    height: 45px;
    border: 2px solid #3d3d3d;
    border-radius: 8px;
    cursor: pointer;
    background: #1f1f1f;
    transition: all 0.3s ease;
}

.color-input:hover {
    border-color: #667eea;
}

.color-text {
    flex: 1;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .settings-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .color-picker-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .color-input {
        width: 100%;
        height: 50px;
    }
}

/* Стили для блока информации о плагине */
.plugin-info-block {
    background: #252525;
    border: 2px solid #667eea;
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
    animation: slideDown 0.3s ease;
}

.info-block-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3d3d3d;
}

.plugin-info-block .form-group {
    margin-bottom: 20px;
}

.plugin-info-block input[readonly] {
    background: #1a1a1a;
    cursor: not-allowed;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .plugin-info-block {
        padding: 15px;
        margin: 20px 0;
    }
    
    .info-block-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
}

/* Стили для группы кнопок действий */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.form-actions .btn-submit {
    flex: 2;
}

.btn-reset {
    flex: 1;
    background: #3d3d3d;
    color: #ffffff;
    border: 1px solid #4d4d4d;
    padding: 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: #4d4d4d;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-reset:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions .btn-submit,
    .btn-reset {
        width: 100%;
    }
}

/* Стили для статусов версий плагинов */
.version-stats {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.version-stats span {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stat-up-to-date {
    background: #1f2e1f;
    color: #4caf50;
    border: 1px solid #4caf50;
}

.stat-outdated {
    background: #2e1f1f;
    color: #ff9800;
    border: 1px solid #ff9800;
}

.stat-unknown {
    background: #1f1f2e;
    color: #2196f3;
    border: 1px solid #2196f3;
}

.plugin-item.outdated {
    border-color: #ff9800 !important;
    background: #2e1f1f !important;
}

.plugin-item.up-to-date {
    border-color: #4caf50 !important;
    background: #1f2e1f !important;
}

.version-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 8px;
    text-transform: uppercase;
}

.version-badge.outdated {
    background: #ff9800;
    color: #000;
}

.version-badge.up-to-date {
    background: #4caf50;
    color: #fff;
}

.plugin-latest {
    color: #ff9800;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 5px;
}

.btn-manage-versions {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-manage-versions:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.plugins-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3d3d3d;
    gap: 15px;
}

/* Стили для управления версиями */
.versions-list {
    margin-top: 20px;
}

.versions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.version-item {
    background: #1f1f1f;
    border: 1px solid #3d3d3d;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.version-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.version-name {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.version-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.version-number {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    flex: 1;
}

.btn-edit {
    background: #3d3d3d;
    color: #ffffff;
    border: 1px solid #4d4d4d;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    background: #667eea;
    border-color: #667eea;
    transform: translateY(-1px);
}

.btn-delete-small {
    background: #dc3545;
    color: #ffffff;
    border: 1px solid #dc3545;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete-small:hover {
    background: #c82333;
    border-color: #bd2130;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .version-stats {
        gap: 8px;
    }
    
    .version-stats span {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .plugins-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-manage-versions {
        width: 100%;
    }
    
    .versions-grid {
        grid-template-columns: 1fr;
    }
    
    .version-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
}

/* Notification System */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.notification {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid #4ecca3;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4ecca3, #45b393);
    animation: progressBar 5s linear;
}

@keyframes progressBar {
    from { width: 100%; }
    to { width: 0%; }
}

.notification.success {
    background: linear-gradient(135deg, #1e5128 0%, #2d6a3f 100%);
    border-left-color: #4ecca3;
}

.notification.info {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-left-color: #4a90e2;
}

.notification.warning {
    background: linear-gradient(135deg, #8b5a00 0%, #b87700 100%);
    border-left-color: #ffa500;
}

.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
    animation: bounce 0.5s ease-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification.hiding {
    animation: slideOut 0.3s ease-out forwards;
}

/* Responsive notifications */
@media (max-width: 768px) {
    .notification-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .notification {
        padding: 12px 16px;
    }
}

/* Notification Badge */
.notification-badge-container {
    display: flex;
    align-items: center;
}

.notification-badge {
    background: linear-gradient(135deg, #4ecca3 0%, #45b393 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 12px rgba(78, 204, 163, 0.4);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(78, 204, 163, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(78, 204, 163, 0.6);
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #2d2d2d;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid #3d3d3d;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #3d3d3d;
    color: #fff;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.version-item {
    background: #3d3d3d;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.version-item:hover {
    background: #4d4d4d;
    transform: translateX(5px);
}

.version-info {
    flex: 1;
}

.version-timestamp {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4ecca3;
    margin-bottom: 8px;
}

.version-details {
    color: #999;
    font-size: 0.9rem;
}

.version-stats {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.version-stat {
    background: #2d2d2d;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
}

.version-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-download-version {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-download-version:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-view-versions {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-versions:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
}

.no-versions-message {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 1.1rem;
}

/* Mobile Responsive Design for Modal */
@media (max-width: 768px) {
    .modal {
        padding: 0;
        align-items: flex-end;
    }
    
    .modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 12px 12px 0 0;
        margin: 0;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.4rem;
    }
    
    .modal-close {
        width: 44px;
        height: 44px;
        font-size: 1.8rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .version-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
    
    .version-actions {
        width: 100%;
    }
    
    .btn-download-version,
    .btn-view-versions {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
        min-height: 44px;
    }
    
    .version-stats {
        width: 100%;
    }
    
    .version-stat {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .version-timestamp {
        font-size: 1rem;
    }
    
    .version-details {
        font-size: 0.85rem;
    }
}

/* Settings Tabs */
.settings-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #3d3d3d;
    padding-bottom: 0;
    flex-wrap: wrap;
}

.settings-tab {
    background: none;
    border: none;
    color: #999;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.settings-tab:hover {
    color: #fff;
    background: rgba(102, 126, 234, 0.1);
}

.settings-tab.active {
    color: #4ecca3;
    border-bottom-color: #4ecca3;
}

.settings-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.settings-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive for settings tabs */
@media (max-width: 768px) {
    .settings-tabs {
        flex-direction: column;
        gap: 0;
        border-bottom: none;
    }
    
    .settings-tab {
        width: 100%;
        text-align: left;
        padding: 15px 20px;
        border-bottom: 1px solid #3d3d3d;
        border-left: 3px solid transparent;
        bottom: 0;
    }
    
    .settings-tab.active {
        border-bottom-color: #3d3d3d;
        border-left-color: #4ecca3;
        background: rgba(78, 204, 163, 0.1);
    }
}

@media (max-width: 480px) {
    .settings-tab {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
}

/* IP Lists Styles */
.ip-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #3d3d3d;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.ip-list-item:hover {
    background: #4d4d4d;
}

.ip-list-item.whitelist {
    border-left: 3px solid #4ecca3;
}

.ip-list-item.blacklist {
    border-left: 3px solid #e74c3c;
}

.ip-address {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    color: #4ecca3;
    font-weight: 600;
}

.ip-info {
    font-size: 0.85rem;
    color: #999;
    margin-top: 3px;
}

.btn-remove-ip {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-remove-ip:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

/* Light Theme */
body.light-theme {
    background: #f5f5f5;
    color: #333;
}

body.light-theme .container {
    background: #fff;
}

body.light-theme .header,
body.light-theme .modal-header {
    background: #fff;
    border-bottom: 2px solid #e0e0e0;
}

body.light-theme .header h1,
body.light-theme .modal-header h1,
body.light-theme .header h2,
body.light-theme .modal-header h2 {
    color: #333;
}

body.light-theme .subtitle {
    color: #666;
}

body.light-theme .content {
    background: #fff;
}

body.light-theme .server-card,
body.light-theme .settings-section,
body.light-theme .attack-log {
    background: #fff;
    border: 1px solid #e0e0e0;
}

body.light-theme .text-input,
body.light-theme .code-textarea {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

body.light-theme .server-header-folders,
body.light-theme .plugins-sidebar,
body.light-theme .code-editor {
    background: #f9f9f9;
}

body.light-theme .plugin-item,
body.light-theme .ip-list-item {
    background: #f0f0f0;
    color: #333;
}

body.light-theme .plugin-item:hover,
body.light-theme .ip-list-item:hover {
    background: #e8e8e8;
}

body.light-theme .settings-tab {
    color: #666;
}

body.light-theme .settings-tab:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .settings-tab.active {
    color: #4ecca3;
}

body.light-theme .version-item,
body.light-theme .attack-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
}

body.light-theme .modal {
    background: rgba(0, 0, 0, 0.5);
}

body.light-theme .modal-content {
    background: #fff;
}

body.light-theme .modal-close {
    color: #666;
}

body.light-theme .modal-close:hover {
    background: #f0f0f0;
    color: #333;
}


/* ============================================
   USER MANAGEMENT STYLES
   ============================================ */

.user-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(78, 204, 163, 0.15);
}

.btn-view-activity,
.btn-delete-user {
    transition: all 0.2s;
}

.btn-view-activity:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(78, 204, 163, 0.3);
}

.btn-delete-user:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Activity table styles */
table {
    font-size: 0.95rem;
}

table th {
    position: sticky;
    top: 0;
    z-index: 10;
}

table tr {
    transition: background 0.2s;
}

table tbody tr:hover {
    background: #333 !important;
}

/* Server checkboxes */
.server-checkbox {
    cursor: pointer;
    accent-color: #4ecca3;
}

.server-checkbox:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* User activity indicators */
.activity-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.activity-indicator.active {
    background: #4ecca3;
    box-shadow: 0 0 8px rgba(78, 204, 163, 0.6);
}

.activity-indicator.inactive {
    background: #999;
}

/* Responsive adjustments for user management */
@media (max-width: 768px) {
    .user-card > div {
        flex-direction: column;
        gap: 15px;
    }
    
    .user-card button {
        width: 100%;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    table th,
    table td {
        padding: 8px !important;
    }
}
