@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Regular.woff2') format('woff2'),
       url('../fonts/Roboto-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Medium.woff2') format('woff2'),
       url('../fonts/Roboto-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Bold.woff2') format('woff2'),
       url('../fonts/Roboto-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

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

.action-button
{
    align-items: center;
    background-color: #4a6fa5;
    border: none;
    border-radius: 8px;
    color: #FFF;
    cursor: pointer;
    display: flex;
    font-size: 16px;
    font-weight: 500;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
    padding: 14px;
    transition: background-color .2s ease;
    width: 100%;
}

.action-button-container
{
	margin-top:24px;
	width:100%;
}

.app-container
{
	margin:0 auto;
	max-width:500px;
	position:relative;
	width:100%;
}

.app-title
{
	color:#2c3e50;
	font-size:24px;
	font-weight:600;
	margin-bottom:24px;
	transition:color .3s ease;
}

.attempt-dot
{
	background-color:#e0e0e0;
	border-radius:50%;
	height:20px;
	width:20px;
}

.attempt-dot-filled
{
	background-color:#dc3545;
}

.attempts-counter
{
	color:#6c757d;
	display:flex;
	font-size:14px;
	gap:10px;
	justify-content:center;
	margin:20px 0;
}

.attempts-number
{
	color:#dc3545;
	font-weight:700;
}

.clear-files-btn
{
	align-items:center;
	background:rgba(0,0,0,0.05);
	border:none;
	border-radius:50%;
	cursor:pointer;
	display:flex;
	height:32px;
	justify-content:center;
	padding:0;
	position:absolute;
	right:12px;
	top:12px;
	transition:all .2s ease;
	width:32px;
	z-index:2;
}

.clear-files-btn svg
{
	color:#6c757d;
	height:18px;
	width:18px;
}

.clear-files-btn:hover
{
	background:rgba(0,0,0,0.1);
}

.copy-btn {
  align-items: center;
  background-color: var(--button-bg, #4a6fa5);
  border: none;
  border-radius: 6px;
  color: #FFF;
  cursor: pointer;
  display: flex;
  height: 36px;
  justify-content: center;
  transition: background-color .2s ease;
  width: 36px;
}

.copy-btn svg {
  height: 18px;
  width: 18px;
}

.copy-btn .icon-copy {
  height: 18px;
  width: 18px;
}

.copy-btn:hover
{
	background-color:#5a8ee0;
}

.copy-notification
{
	background-color:#4a6fa5;
	border-radius:6px;
	box-shadow:0 2px 10px rgba(0,0,0,0.2);
	color:#FFF;
	opacity:0;
	padding:12px 16px;
	position:fixed;
	right:20px;
	top:20px;
	transition:opacity .3s ease;
	z-index:1000;
}

.countdown
{
	color:var(--error-color);
	font-size:1.2rem;
	font-weight:500;
	margin:20px 0;
}

.dark-theme
{
	background-color:#121212;
	color:#e0e0e0;
}

.dark-theme .app-title,.dark-theme .result-message
{
	color:#f5f5f5;
}

.dark-theme .attempt-dot {
  background-color: #444; /* Темный (неактивный) */
}

.dark-theme .attempt-dot-filled
{
	background-color:#ff6b6b;
}

.dark-theme .clear-files-btn
{
	background:rgba(255,255,255,0.1);
}

.dark-theme .clear-files-btn:hover
{
	background:rgba(255,255,255,0.2);
}

.dark-theme .copy-btn:hover
{
	background-color:#5a8ee0;
}

.dark-theme .download-link:hover
{
	background-color:#333;
}

.dark-theme .file-item
{
	border-bottom-color:#444;
}

.dark-theme .file-label
{
	background-color:#2d2d2d;
	border-color:#444;
}

.dark-theme .file-label:hover
{
	background-color:#333;
	border-color:#666;
}

.dark-theme .file-meta.limit-exceeded,.dark-theme .attempts-number
{
	color:#ff6b6b;
}

.dark-theme .file-size,.dark-theme .download-icon,.dark-theme .folder-link,.dark-theme .link-text
{
	color:#6d9eeb;
}

.dark-theme .link-container,.dark-theme .link-display,.dark-theme .locked-container
{
	background-color:#2d2d2d;
}

.dark-theme .password-input
{
	background-color:#333;
	border-color:#444;
	color:#e0e0e0;
}

.dark-theme .password-input:focus
{
	border-color:#6d9eeb;
	box-shadow:0 0 0 2px rgba(109,158,235,0.2);
}

.dark-theme .password-protected
{
	background-color:#2d2d2d;
	box-shadow:0 4px 12px rgba(0,0,0,0.3);
}

.dark-theme .progress-bar
{
	background-color:#444;
}

.dark-theme .progress-fill,.dark-theme .copy-btn,.dark-theme .copy-notification
{
	background-color:#6d9eeb;
}

.dark-theme .theme-toggle
{
	background:#424242;
}

.dark-theme .theme-toggle::after
{
	transform:translateX(20px);
}

.dark-theme .tooltip
{
	background-color:#444;
	filter:drop-shadow(02px4pxrgba(0,0,0,0.4));
}

.dark-theme .tooltip::after
{
	border-color:#444 transparent transparent;
}

.dark-theme .upload-card
{
	background-color:#1e1e1e;
	box-shadow:0 4px 12px rgba(0,0,0,0.3);
}

.dark-theme .upload-icon,.dark-theme .file-info,.dark-theme .file-meta,.dark-theme .attempts-counter,.dark-theme .file-md5,.dark-theme .clear-files-btn svg,.dark-theme .password-icon
{
	color:#aaa;
}

.download-icon
{
	color:#4a6fa5;
	height:20px;
	transition:color .3s ease;
	width:20px;
}

.download-link
{
	align-items:center;
	border-radius:4px;
	display:inline-flex;
	height:32px;
	justify-content:center;
	margin-left:10px;
	transition:background-color .2s ease;
	width:32px;
}

.download-link:hover
{
	background-color:#f0f2f5;
}

.error-icon,.file-meta.limit-exceeded
{
	color:#dc3545;
}

.file-input
{
	border:0;
	clip:rect(0,0,0,0);
	height:1px;
	margin:-1px;
	overflow:hidden;
	padding:0;
	position:absolute;
	width:1px;
}

.file-invalid .file-name
{
	opacity:0.7;
}

.file-item
{
	align-items:center;
	display:grid;
	gap:12px;
	grid-template-columns:1fr auto auto auto;
	padding:8px 0;
}

.file-label
{
	align-items:center;
	background-color:#f8f9fa;
	border:2px dashed #e0e0e0;
	border-radius:8px;
	cursor:pointer;
	display:flex;
	flex-direction:column;
	gap:12px;
	justify-content:center;
	padding:32px 24px;
	position:relative;
	transition:all .2s ease;
}

.file-label.highlight
{
	background-color:rgba(74,111,165,0.1);
	border-color:#4a6fa5;
}

.file-label:hover
{
	background-color:#f0f2f5;
	border-color:#b0b0b0;
}

.file-list-container
{
	margin:20px 0;
	width:100%;
}

.file-list-items
{
	display:flex;
	flex-direction:column;
	gap:8px;
}

.file-md5
{
	color:#666;
	font-family:monospace;
	font-size:11px;
	margin-top:4px;
	opacity:0.8;
	word-break:break-all;
}

.file-md5.match
{
	color:#28a745!important;
}

.file-md5.mismatch
{
	color:#dc3545!important;
}

.file-meta
{
	color:#6c757d;
	font-size:14px;
	margin-top:8px;
	position:relative;
}

.file-name
{
	overflow:hidden;
	text-align:left;
	text-overflow:ellipsis;
	white-space:nowrap;
}

.file-selector
{
	position:relative;
}

.file-size
{
	color:#4a6fa5;
	font-weight:500;
	text-align:right;
	white-space:nowrap;
}

.file-status
{
	cursor:help;
	position:relative;
}

.file-status,.file-actions
{
	display:flex;
	justify-content:flex-end;
}

.folder-link
{
	color:#4a6fa5;
	font-size:14px;
	text-decoration:none;
	transition:color .3s ease;
	word-break:break-all;
}

.folder-link:hover
{
	text-decoration:underline;
}

.link-container
{
	background-color:#f8f9fa;
	border-radius:6px;
	margin:8px 0;
	padding:12px;
	transition:background-color .3s ease;
	width:100%;
}

.link-display
{
	align-items:center;
	background-color:#f8f9fa;
	border-radius:8px;
	display:flex;
	gap:10px;
	margin-bottom:20px;
	padding:12px 16px;
	transition:all .3s ease;
}

.link-text
{
	color:#4a6fa5;
	flex:1;
	font-size:14px;
	word-break:break-all;
}

.loading-icon
{
	animation:spin 1s linear infinite;
}

.locked-container
{
	background-color:var(--card-bg);
	border-radius:12px;
	box-shadow:0 4px 12px rgba(0,0,0,0.1);
	margin:50px auto;
	max-width:400px;
	padding:40px 30px 30px;
	position:relative;
	text-align:center;
}

.locked-container .theme-toggle
{
	position:absolute;
	right:15px;
	top:15px;
}

.password-error
{
	color:#dc3545;
	font-size:14px;
	margin-top:12px;
}

.password-field
{
	margin:16px 0;
	position:relative;
	width:100%;
}

.password-field .toggle-password
{
	background:none;
	border:none;
	cursor:pointer;
	opacity:0.6;
	padding:0;
	position:absolute;
	right:10px;
	top:50%;
	transform:translateY(-50%);
	transition:opacity .2s;
}

.password-field:focus-within .password-icon
{
	color:#4a6fa5;
}

.password-form
{
	margin:0 auto;
	max-width:400px;
	width:100%;
}

.password-icon
{
	color:#666;
	display:block;
	height:24px;
	transition:color .2s ease;
	width:24px;
}

.password-input
{
	border:1px solid #e0e0e0;
	border-radius:6px;
	font-size:14px;
	padding:12px;
	transition:border-color .2s ease;
	width:100%;
}

.password-input:focus
{
	border-color:#4a6fa5;
	outline:none;
}

.password-protected
{
	align-items:center;
	display:flex;
	flex-direction:column;
	padding:32px;
	text-align:center;
}

.progress-bar
{
	background-color:#e0e0e0;
	border-radius:4px;
	height:8px;
	margin-bottom:8px;
	overflow:hidden;
}

.progress-container
{
	display:none;
	margin:20px 0;
	width:100%;
}

.progress-fill
{
	background-color:#4a6fa5;
	height:100%;
	transition:width .3s ease, background-color .3s ease;
	width:0;
}

.progress-info
{
	color:#6c757d;
	display:flex;
	font-size:13px;
	justify-content:space-between;
}

.progress-speed
{
	font-weight:500;
}

.remove-file-btn
{
	align-items:center;
	background:none;
	border:none;
	cursor:pointer;
	display:flex;
	height:24px;
	justify-content:center;
	opacity:0.7;
	padding:0;
	transition:opacity .2s;
	width:24px;
}

.remove-file-btn:hover
{
	opacity:1;
}

.remove-icon
{
	color:#dc3545;
	height:16px;
	width:16px;
}

.result-message
{
	color:#2c3e50;
	font-size:18px;
	font-weight:500;
	transition:color .3s ease;
}

.result-success .success-icon
{
	height:48px;
	margin-bottom:16px;
	width:48px;
}

.result-success,.result-error
{
	align-items:center;
	display:flex;
	flex-direction:column;
	gap:16px;
	padding:24px;
}

.status-icon
{
	height:20px;
	width:20px;
}

.success-icon
{
	color:#28a745;
}

.theme-toggle
{
	background:#ffeb3b;
	border:none;
	border-radius:22px;
	box-shadow:0 1px 3px rgba(0,0,0,0.2);
	cursor:pointer;
	height:22px;
	outline:none;
	padding:0;
	position:absolute;
	right:15px;
	top:15px;
	transition:background .3s ease;
	width:42px;
	z-index:10;
}

.theme-toggle::after
{
	background:#FFF;
	border-radius:50%;
	box-shadow:0 1px 2px rgba(0,0,0,0.2);
	content:'';
	height:20px;
	left:1px;
	position:absolute;
	top:1px;
	transition:transform .3s ease;
	width:20px;
}

.toggle-password
{
	align-items:center;
	background:none;
	border:none;
	border-radius:4px;
	cursor:pointer;
	display:inline-flex;
	height:24px;
	justify-content:center;
	margin:0;
	opacity:0.6;
	outline:none;
	padding:0;
	position:absolute;
	right:10px;
	top:50%;
	transform:translateY(-50%);
	transition:all .2s ease;
	width:24px;
}

.toggle-password:active
{
	transform:scale(0.95);
}

.toggle-password:hover
{
	background-color:rgba(0,0,0,0.05);
	opacity:1;
}

.tooltip
{
	background-color:#333;
	border-radius:4px;
	bottom:100%;
	color:#FFF;
	filter:drop-shadow(02px4pxrgba(0,0,0,0.2));
	font-size:13px;
	left:50%;
	margin-bottom:8px;
	max-width:250px;
	min-width:180px;
	opacity:0;
	padding:8px 12px;
	pointer-events:none;
	position:absolute;
	text-align:center;
	transform:translateX(-50%);
	transition:opacity .2s ease;
	visibility:hidden;
	white-space:normal;
	word-break:break-word;
	z-index:1000;
}

.tooltip::after
{
	border-color:#333 transparent transparent;
	border-style:solid;
	border-width:5px;
	content:'';
	left:50%;
	position:absolute;
	top:100%;
	transform:translateX(-50%);
}

.upload-button
{
	align-items:center;
	background-color:#4a6fa5;
	border:none;
	border-radius:8px;
	color:#FFF;
	cursor:pointer;
	display:flex;
	font-size:16px;
	font-weight:500;
	gap:8px;
	justify-content:center;
	margin-top:8px;
	padding:14px;
	transition:background-color .2s ease;
	width:100%;
}

.upload-button:disabled
{
	background-color:#ccc;
	cursor:not-allowed;
	opacity:0.7;
    pointer-events: none;
}

.upload-button:hover,.action-button:hover
{
	background-color:#3a5a80;
}

.upload-card
{
	background:#FFF;
	border-radius:12px;
	box-shadow:0 4px 12px rgba(0,0,0,0.1);
	padding:32px;
	text-align:center;
	transition:background-color .3s ease, box-shadow .3s ease;
}

.upload-icon
{
	color:#6c757d;
	height:50px;
	transition:color .3s ease;
	width:50px;
}

body
{
	align-items:center;
	background-color:#f8f9fa;
	color:#333;
	display:flex;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	justify-content:center;
	line-height:1.6;
	min-height:100vh;
	padding:20px;
	transition:background-color .3s ease, color .3s ease;
}

to
{
	transform:rotate(360deg);
}

.button {
    align-items: center;
    background-color: var(--button-bg, #4a6fa5);
    border: none;
    border-radius: 8px;
    color: #FFF;
    cursor: pointer;
    display: inline-flex;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    gap: 8px;
    justify-content: center;
    padding: 14px 24px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.button:hover {
    background-color: var(--button-hover, #3a5a80);
}

.button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.button-icon {
    height: 18px;
    width: 18px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Стили для иконок внутри кнопок */
.button .icon {
    height: 18px;
    width: 18px;
}

/* Специфичные стили для разных типов кнопок */
.upload-button {
    width: 100%;
}

.action-button {
    width: 100%;
    margin-top: 16px;
}

.copy-btn {
    width: 36px;
    height: 36px;
    padding: 0;
}

.download-link {
    width: 32px;
    height: 32px;
    padding: 0;
}

/* Стили для выбора срока хранения */
.expiry-selector {
    margin: 20px 0;
}

.expiry-title {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 12px;
    text-align: center;
}

.expiry-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.expiry-option {
    display: block;
    cursor: pointer;
}

.expiry-option input[type="radio"] {
    display: none;
}

.expiry-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.expiry-option input[type="radio"]:checked + .expiry-label {
    border-color: #4a6fa5;
    background-color: #4a6fa5;
    color: white;
}

.expiry-option:hover .expiry-label {
    border-color: #4a6fa5;
    background-color: #f0f4ff;
}

/* Темная тема для выбора срока */
.dark-theme .expiry-label {
    background-color: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

.dark-theme .expiry-option input[type="radio"]:checked + .expiry-label {
    border-color: #6d9eeb;
    background-color: #6d9eeb;
    color: white;
}

.dark-theme .expiry-option:hover .expiry-label {
    border-color: #6d9eeb;
    background-color: #2a3d5e;
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .expiry-options {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .expiry-label {
        padding: 8px 10px;
    }
}


/* Информация о лимитах загрузки */
.upload-limits {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #6c757d;
}

.limit-item {
    padding: 4px 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.dark-theme .limit-item {
    background-color: #2d2d2d;
    color: #aaa;
}

/* Стили для выбора срока хранения */
.expiry-selector {
    margin: 20px 0;
}

.expiry-title {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 12px;
    text-align: center;
}

.expiry-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.expiry-option {
    display: block;
    cursor: pointer;
}

.expiry-option input[type="radio"] {
    display: none;
}

.expiry-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
    font-size: 13px;
}

.expiry-option input[type="radio"]:checked + .expiry-label {
    border-color: #4a6fa5;
    background-color: #e8f0fe;
    font-weight: 500;
}

.expiry-option:hover .expiry-label {
    border-color: #b0b0b0;
    background-color: #f0f2f5;
}

.expiry-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.expiry-text {
    color: #333;
    white-space: nowrap;
}

/* Темная тема для выбора срока */
.dark-theme .expiry-label {
    background-color: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

.dark-theme .expiry-option input[type="radio"]:checked + .expiry-label {
    border-color: #6d9eeb;
    background-color: #2a3d5e;
}

.dark-theme .expiry-option:hover .expiry-label {
    border-color: #666;
    background-color: #333;
}

.dark-theme .expiry-text {
    color: #e0e0e0;
}

/* Таймер срока хранения */
.expiry-timer {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
    color: #6c757d;
}

.dark-theme .expiry-timer {
    background-color: #2d2d2d;
    color: #aaa;
}

.expiry-time {
    font-weight: 500;
    color: #4a6fa5;
}

.dark-theme .expiry-time {
    color: #6d9eeb;
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .upload-limits {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .expiry-options {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .expiry-label {
        padding: 8px 10px;
    }
}

/* Заголовок страницы с индикатором пароля */
.page-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.password-indicator {
    display: flex;
    align-items: center;
    cursor: help;
    position: relative;
    margin-top: -18px;
}

.lock-icon {
    width: 18px;
    height: 18px;
    color: #4a6fa5;
    transition: color 0.2s ease;
}

.password-indicator:hover .lock-icon {
    color: #3a5a80;
}

.dark-theme .lock-icon {
    color: #6d9eeb;
}

.dark-theme .password-indicator:hover .lock-icon {
    color: #5a8ee0;
}

/* Подсказка для индикатора пароля */
.password-indicator::after {
    content: 'Папка защищена паролем';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 1000;
    margin-bottom: 5px;
}

.password-indicator:hover::after {
    opacity: 1;
    visibility: visible;
}

.dark-theme .password-indicator::after {
    background: #555;
    color: #e0e0e0;
}

/* Страница ошибки */
.error-page {
    text-align: center;
    padding: 20px 0;
}

.error-description {
    color: #6c757d;
    margin: 20px 0;
    font-size: 16px;
}

/* Админка */
.admin-menu {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 30px 0;
}

.admin-button {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.admin-icon {
    font-size: 18px;
}

.admin-info {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #6c757d;
    font-size: 14px;
}

.admin-logout {
    background-color: #dc3545;
    margin-top: 10px;
}

.admin-logout:hover {
    background-color: #c82333;
}

.dark-theme .admin-info {
    border-top-color: #444;
    color: #aaa;
}

/* Адаптивность */
@media (max-width: 480px) {
    .admin-menu {
        flex-direction: column;
        gap: 8px;
    }
    
    .admin-button {
        min-width: auto;
    }
}

/* Админка */
.admin-menu {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 30px 0;
}

.admin-button {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.admin-icon {
    font-size: 18px;
}

.admin-info {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.admin-logout {
    background-color: #dc3545;
}

.admin-logout:hover {
    background-color: #c82333;
}

/* Таблица в админке */
.admin-table-container {
    margin: 20px 0;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.admin-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.admin-table tr:hover {
    background-color: #f8f9fa;
}

.folder-name {
    cursor: help;
    text-decoration: underline dotted;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Темная тема для таблицы */
.dark-theme .admin-info {
    border-top-color: #444;
}

.dark-theme .admin-table th {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

.dark-theme .admin-table th,
.dark-theme .admin-table td {
    border-bottom-color: #444;
}

.dark-theme .admin-table tr:hover {
    background-color: #2d2d2d;
}

/* Адаптивность */
@media (max-width: 768px) {
    .admin-table {
        font-size: 12px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px 4px;
    }
    
    .folder-name {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .admin-menu {
        flex-direction: column;
        gap: 8px;
    }
    
    .admin-button {
        min-width: auto;
    }
}

/* Админка - специфичные стили */
.admin-container .app-container {
    margin: 0 auto;
    max-width: 1200px;
    width: 95%;
}

.admin-container .upload-card {
    width: 100%;
    min-width: 500px;
    box-sizing: border-box;
}

/* Таблица в админке */
.admin-table-container {
    margin: 20px 0;
    overflow-x: auto;
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 800px;
}

.admin-table th,
.admin-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
}

.admin-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
}

.admin-table tr:hover {
    background-color: #f8f9fa;
}

.archived-row {
    background-color: #fff3cd;
    opacity: 0.7;
}

.dark-theme .archived-row {
    background-color: #332701;
}

.folder-name {
    cursor: help;
    text-decoration: underline dotted;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Формы в таблице */
.expiry-form {
    margin: 0;
}

.expiry-form select {
    padding: 4px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: white;
    font-size: 12px;
    min-width: 100px;
}

.dark-theme .expiry-form select {
    background: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

/* Действия */
.admin-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.action-form {
    margin: 0;
}

.admin-btn {
    padding: 6px 8px;
    font-size: 11px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.admin-btn-success {
    background-color: #28a745;
    color: white;
}

.admin-btn-success:hover {
    background-color: #218838;
}

.admin-btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.admin-btn-warning:hover {
    background-color: #e0a800;
}

.admin-btn-danger {
    background-color: #dc3545;
    color: white;
}

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

/* Темная тема для админки */
.dark-theme .admin-table th {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

.dark-theme .admin-table th,
.dark-theme .admin-table td {
    border-bottom-color: #444;
}

.dark-theme .admin-table tr:hover {
    background-color: #2d2d2d;
}

/* Адаптивность для админки */
@media (max-width: 768px) {
    .admin-container .app-container {
        width: 98%;
        max-width: none;
    }
    
    .admin-container .upload-card {
        min-width: auto;
        padding: 20px 16px;
        margin: 0 10px;
    }
    
    .admin-table {
        font-size: 12px;
        min-width: 700px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px 6px;
    }
    
    .folder-name {
        max-width: 100px;
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 2px;
    }
    
    .admin-btn {
        font-size: 10px;
        padding: 4px 6px;
    }
}

@media (max-width: 480px) {
    .admin-container .upload-card {
        padding: 16px 12px;
        margin: 0 5px;
    }
    
    .admin-table {
        min-width: 600px;
        font-size: 11px;
    }
}
