/* Основные стили */
* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    background: #0f111a;
    color: #e1e1e1;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body.logged-in {
    justify-content: flex-start;
    padding-top: 80px;
}

.card {
    background: #1a1d29;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid #2d3142;
}

.card h2 {
    margin-top: 0;
}

.hidden { display: none !important; }

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 450px;
    background: #1a1d29;
    display: none;
    justify-content: space-around;
    padding: 15px 0;
    border-bottom: 1px solid #2d3142;
    border-radius: 0 0 15px 15px;
    z-index: 100;
}

.nav-item {
    color: #adadad;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    padding: 5px 10px;
}

.nav-item.active {
    color: #007bff;
    font-weight: bold;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 2px solid #2d3142;
    background: #0f111a;
    image-rendering: pixelated;
}

.profile-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #2d3142;
    border-radius: 8px;
    background: #0f111a;
    color: #ffffff;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    transition: background 0.3s;
}

button:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #444;
}

.group-item {
    background: #24283b;
    border: 1px solid #2d3142;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #e1e1e1;
    margin-top: 10px;
    text-align: left;
}

.subtitle {
    font-size: 14px;
    color: #adadad;
}

.detail {
    font-size: 12px;
    opacity: 0.6;
}

#error-msg {
    color: #ff5252;
    margin-top: 10px;
    font-size: 14px;
}

#debug-console {
    width: 100%;
    max-width: 400px;
    background: #000;
    color: #adadad;
    padding: 10px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 11px;
    overflow-y: auto;
    height: 100px;
    border: 1px solid #2d3142;
    margin-top: 20px;
}

.log-entry {
    margin-bottom: 4px;
}

.log-error {
    color: #ff6666;
}

.input-file {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.file-button {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #2c2c2c;
    color: #fff;
    border: 1px solid #444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    font-size: 14px;
}

.file-button:hover {
    background: #3d3d3d;
    border-color: #007bff; 
}

.file-button .icon {
    margin-right: 10px;
}


.file-button.selected {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.file-grid {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
