/* Admin Page Styles */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    max-width: 100vw;
}

.main-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    overflow-x: hidden;
}

.admin-layout {
    display: flex;
    height: calc(100vh - 58px);
    overflow: hidden;
    max-width: 100vw;
}

/* Sidebar Navigation */
.admin-sidebar {
    width: 240px;
    background-color: #232323;
    padding: 20px 0;
    overflow-y: auto;
    flex-shrink: 0;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #b0b0b0;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
}

.admin-nav-item:hover {
    background-color: #2c2c2c;
    color: #e0e0e0;
}

.admin-nav-item.active {
    background-color: #3259e8;
    color: #ffffff;
}

.admin-nav-item svg {
    flex-shrink: 0;
}

/* Main Content */
.admin-main {
    flex: 1;
    background-color: #111111;
    overflow-y: auto;
    padding: 30px 40px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #ffffff;
    margin: 0;
}

.admin-add-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #3259e8;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-family: 'Geologica', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.admin-add-btn:hover {
    background-color: #2948c7;
}

/* Controls */
.admin-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.admin-search {
    flex: 1;
    background-color: #2c2c2c;
    border: 1px solid #454545;
    border-radius: 8px;
    padding: 10px 16px;
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #e0e0e0;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
    outline: none;
    transition: border-color 0.2s;
}

.admin-search::placeholder {
    color: #8d8d8d;
}

.admin-search:focus {
    border-color: #3259e8;
}

.admin-filters {
    display: flex;
    gap: 8px;
}

.admin-select {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 36px 10px 14px;
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #fff;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg width="10" height="6" viewBox="0 0 10 6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L5 5L9 1" stroke="%23888" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.admin-select:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.admin-select:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(50, 89, 232, 0.5);
    box-shadow: 0 0 0 3px rgba(50, 89, 232, 0.1);
}

.admin-select option {
    background-color: #1a1a1a;
    color: #fff;
    padding: 10px;
}

/* Table */
.admin-table-container {
    background-color: #2c2c2c;
    border: 1px solid #454545;
    border-radius: 12px;
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead tr {
    background-color: #1a1a1a;
}

.admin-table th {
    padding: 16px 20px;
    font-family: 'Geologica', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #666;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.admin-table tbody tr {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

.admin-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.admin-table td {
    padding: 18px 20px;
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #e0e0e0;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
    vertical-align: middle;
}

/* User Cell */
.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: #ffffff;
    flex-shrink: 0;
}

.user-name {
    font-weight: 500;
    color: #ffffff;
}

/* Projects Count */
.projects-count {
    display: inline-block;
    min-width: 20px;
    text-align: center;
}

/* Badges */
.role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 12px;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
}

.role-badge.admin {
    background-color: rgba(50, 89, 232, 0.15);
    color: #5d84ff;
}

.role-badge.manager {
    background-color: rgba(255, 144, 80, 0.15);
    color: #ff9050;
}

.role-badge.developer {
    background-color: rgba(2, 167, 90, 0.15);
    color: #02a75a;
}

.role-badge.designer {
    background-color: rgba(189, 0, 255, 0.15);
    color: #bd5eff;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 12px;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
}

.status-badge.active {
    background-color: rgba(2, 167, 90, 0.15);
    color: #02a75a;
}

.status-badge.inactive {
    background-color: rgba(141, 141, 141, 0.15);
    color: #8d8d8d;
}

/* Action Button */
.action-btn {
    background: none;
    border: none;
    color: #8d8d8d;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.action-btn:hover {
    background-color: #454545;
    color: #e0e0e0;
}

/* Scrollbar */
.admin-main::-webkit-scrollbar {
    width: 8px;
}

.admin-main::-webkit-scrollbar-track {
    background: #232323;
}

.admin-main::-webkit-scrollbar-thumb {
    background: #454545;
    border-radius: 4px;
}

.admin-main::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

.admin-sidebar::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: #232323;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: #3c3c3c;
    border-radius: 3px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: #4c4c4c;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
}

.project-card:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(50, 89, 232, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.project-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.project-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 17px;
    color: #ffffff;
    margin: 0;
}

.project-key {
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 12px;
    color: #666;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    width: fit-content;
}

.project-description {
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #999;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.project-stats {
    display: flex;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 16px;
}

.project-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-icon {
    color: #666;
}

.stat-value {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
}

.project-card-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Roles List */
.roles-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.role-item {
    background-color: #2c2c2c;
    border: 1px solid #454545;
    border-radius: 12px;
    padding: 20px;
}

.role-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.role-item-header h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.role-item-header p {
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #8d8d8d;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
    margin: 0;
}

.role-permissions-section {
    margin-top: 16px;
}

.role-permissions-section h4 {
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #b0b0b0;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.permission-item {
    padding: 8px 12px;
    background-color: #1a1a1a;
    border: 1px solid #454545;
    border-radius: 6px;
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #8d8d8d;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
}

.permission-item.active {
    background-color: #2c2c2c;
    border-color: #3259e8;
    color: #ffffff;
}

/* Settings Content */
.settings-content {
    max-width: 800px;
}

.settings-group {
    margin-bottom: 32px;
}

.settings-group h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: #2c2c2c;
    border: 1px solid #454545;
    border-radius: 8px;
    margin-bottom: 12px;
}

.setting-info {
    flex: 1;
}

.setting-info label {
    display: block;
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #ffffff;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
    margin-bottom: 4px;
}

.setting-info p {
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #8d8d8d;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
    margin: 0;
}

.setting-input {
    background-color: #1a1a1a;
    border: 1px solid #454545;
    border-radius: 6px;
    padding: 8px 12px;
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #e0e0e0;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
    outline: none;
    min-width: 250px;
}

.setting-input:focus {
    border-color: #3259e8;
}

.setting-select {
    background-color: #1a1a1a;
    border: 1px solid #454545;
    border-radius: 6px;
    padding: 8px 32px 8px 12px;
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #e0e0e0;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="%238d8d8d" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.setting-select:focus {
    border-color: #3259e8;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #454545;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #3259e8;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Стили для модального окна добавления пользователя */
.modal-content {
    background-color: #272727;
    border: 1px solid #454545;
}

.modal-header h2 {
    color: #ffffff;
    font-family: 'Geologica', sans-serif;
    font-weight: 600;
    margin: 0;
}

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

.form-group label {
    display: block;
    color: #ffffff;
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid #454545;
    color: #ffffff;
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: #3259e8;
    outline: none;
}

.form-help {
    display: block;
    color: #888888;
    font-size: 12px;
    margin-top: 4px;
    font-family: 'Geologica', sans-serif;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Geologica', sans-serif;
    color: #ffffff;
    font-size: 14px;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3259e8;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background-color: #3259e8;
    color: white;
}

.btn-primary:hover {
    background-color: #2147d6;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #454545;
}

.btn-secondary:hover {
    background-color: #1a1a1a;
}

/* Additional Button Styles */
.btn-danger {
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background-color: #f44336;
    color: white;
}

.btn-danger:hover {
    background-color: #d32f2f;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #454545;
    border-radius: 6px;
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background-color: #2d2d2d;
    border-color: #555;
    color: #fff;
}

.btn-icon-danger:hover {
    background-color: rgba(244, 67, 54, 0.1);
    border-color: #f44336;
    color: #f44336;
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

/* New Icon Buttons */
.btn-icon-new {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon-new:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-1px);
}

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

.btn-icon-edit:hover {
    background-color: rgba(33, 150, 243, 0.15);
    border-color: rgba(33, 150, 243, 0.4);
    color: #2196f3;
}

.btn-icon-delete:hover {
    background-color: rgba(244, 67, 54, 0.15);
    border-color: rgba(244, 67, 54, 0.4);
    color: #f44336;
}

/* User Cell */
.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    background: #2d2d2d;
    flex-shrink: 0;
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-weight: 500;
    color: #fff;
}

.discord-id {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #888;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

/* Role Badges */
.role-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.admin {
    background-color: rgba(244, 67, 54, 0.15);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.role-badge.manager {
    background-color: rgba(33, 150, 243, 0.15);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.role-badge.moderator {
    background-color: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.role-badge.developer {
    background-color: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.role-badge.designer {
    background-color: rgba(156, 39, 176, 0.15);
    color: #9c27b0;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.role-badge.user {
    background-color: rgba(158, 158, 158, 0.15);
    color: #9e9e9e;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

/* User Details Modal */
.user-details-content {
    padding: 0;
}

.user-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2d2d2d;
}

.user-detail-avatar {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    border: 2px solid #333;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.badges-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    padding: 6px 12px;
    background-color: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 6px;
    font-size: 13px;
    color: #ddd;
}

/* Project Card Actions */
.project-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #2d2d2d;
}

/* Permissions Section */
.permissions-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Checkbox Group Improvements */
.checkbox-group {
    max-height: 200px;
    overflow-y: auto;
    padding: 4px;
}

.checkbox-group::-webkit-scrollbar {
    width: 6px;
}

.checkbox-group::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.checkbox-group::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 3px;
}

.checkbox-group::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        padding: 12px 0;
        position: fixed;
        top: 58px;
        left: 0;
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1000;
        border-bottom: 1px solid #454545;
    }
    
    .admin-sidebar.open {
        max-height: calc(100vh - 58px);
    }
    
    .admin-nav {
        padding: 0 12px;
    }
    
    .admin-main {
        padding: 20px 16px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .admin-title {
        font-size: 22px;
    }
    
    .admin-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .admin-filters {
        width: 100%;
        flex-direction: column;
    }
    
    .admin-select {
        width: 100%;
    }
    
    .admin-table-container {
        overflow-x: auto;
    }
    
    .admin-table {
        min-width: 600px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-content {
        max-width: 100%;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .setting-input {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .admin-main {
        padding: 16px 12px;
    }
    
    .admin-title {
        font-size: 20px;
    }
    
    .admin-add-btn {
        width: 100%;
        justify-content: center;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .user-cell {
        gap: 8px;
    }
    
    .user-avatar-small {
        width: 28px;
        height: 28px;
    }
    
    .project-card {
        padding: 16px;
    }
    
    .project-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .role-item {
        padding: 16px;
    }
    
    .permissions-grid {
        grid-template-columns: 1fr;
    }
}
