body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
	    font-size: 15px;
}
button{
font-family:inherit;
font-size:inherit;
line-height:inherit;
}

a{

   color: #0063cd;

}

input{
box-sizing: border-box;
font-family:inherit;
font-size:inherit;
border:1px solid #aaa;
padding:5px 10px;
line-height:1;
border-radius:6px;
width: unset;
height: unset;
display: inline-block;

outline:none; //Add the below css
padding:0px;
margin:0px;
    vertical-align: bottom;
	vertical-align: top;
 line-height: normal !important;
}

.menu a{
display:inline-block;
padding:10px;
}
.menu a.selected{


font-weight:bold;
}
.menu {
   text-align:center;
    margin: 0 auto;


 
}

h1{
font-size:24px;
}
#uploadForm{
padding:100px;
text-align: center;
}
.container {
    box-sizing: border-box;
   
	 width: 1000px;
    margin: 10px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1, h2, h3 {
    text-align: center;
    color: #2c3e50;
}

.file-upload {
    margin: 10px 0;
    text-align: center;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload label {
    display: inline-block;
    padding: 15px;
	width:100%;
	max-width:300px;
    background: #3498db;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.file-upload label:hover {
    background: #2980b9;
}

#filesInfo {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
	padding: 0 15px;
    margin: 15px 0;
}

#filesList {
    list-style-type: none;
    padding-left: 0;
    margin: 10px 0;
}

#filesList li div{
    white-space: nowrap;
    overflow: hidden;
	text-overflow: ellipsis;
}
#filesList li {
     padding: 5px 0;
    display: flex;
    border-bottom: 1px solid #eee;
    justify-content: space-between;
}

#filesList li:last-child {
    border-bottom: none;
}

#filesList li div:last-child {
   width:100px;
   text-align:right;
}

.upload-btn {
    box-sizing: content-box;
    display: inline-block;
 max-width:300px;
 width:100%;
    padding: 15px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;

    cursor: pointer;
    transition: background 0.3s;
}

.upload-btn:hover {
    background: #27ae60;
}

#progressContainer {
    margin: 20px 0;
}

#progressBar {
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
}

#progressBar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background: #3498db;
    transition: width 0.3s;
}

#progressText {
    text-align: center;
    margin-top: 5px;

}

#resultContainer {
    margin-top: 30px;
    text-align: center;
}

.download-link-input {
    width: calc(100% - 100px);
    padding: 8px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.copy-btn {
    padding: 8px 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: #2980b9;
}

/* Стили для страницы информации о файле */
.file-info {
    text-align: center;
    max-width: 600px;
	margin:auto;
}

.detail-row {
    display: flex;
	/*
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
	*/
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-label {
    font-weight: bold;
    width: 150px;
    color: #555;
}

.detail-value {
word-break: break-all;
    flex: 1;
}


.share-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.share-section p {
    margin-bottom: 10px;
}

#shareLink {
    width: 100%;
    padding: 10px 0;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;

	    text-align: center;
}

/* Стили для истории загрузок */
.back-link, .history-link {
    display: inline-block;
    margin-bottom: 10px;
 /*   color: #3498db;*/
    text-decoration: none;
}

.back-link:hover, .history-link:hover {
    text-decoration: underline;
}

.no-files {
    text-align: center;
    color: #777;
    padding: 30px;
}

.files-list {

    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    gap: 10px;
}

.file-item:hover .file-name,
.file-item:hover .file-ext
{
color:#000;
}
.file-item:hover{

outline: 4px solid #ddd;

background:#ddd;
}
.file-item {
border-radius:4px;
outline: 4px solid #0000;
    align-items: center;
transition:0.2s;

    display: flex;
    background: #fff;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}
.file-ext{
text-align: center;
    width: 50px;
text-transform:uppercase;

}
.file-link{
padding: 3px 0;
text-decoration:none;
		
    display: flex;

  width: 450px;
	flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;							
						

}
.file-name {
    padding-left: 5px;
    padding-right: 5px;
    flex: 1;
  
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.file-details-info{
    justify-content: start;
text-align:left;
display: grid;
    gap: 10px;
}
.file-details .actions{
    display: flex;
    gap: 5px;
    width: 100%;
    justify-content: flex-end;
}
.file-details {

display: grid;
       gap: 5px;
    color: #666;
        width: 474px;
		
    grid-template-columns: 80px 130px 30px 1fr;
    align-items: center;
    justify-items: center;
    text-align: left;
}

.file-details .actions .file-actions {
    display: flex;
    gap: 10px;
}

.action-link.green:hover {
    background: #27ae60;
}
.action-link.green {
    background: #2ecc71;
}
.action-link.green:hover {
    background: #27ae60;
}
.action-link.red {
    background: #a00;
}
.action-link.red:hover {
    background: #700;
}
.action-link {
    display: inline-block;
    border: none;
    text-align: center;
    padding: 5px 10px;

    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 90%;
}

.action-link:hover {
    background: #2980b9;
}


.download-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #2ecc71;
    color: white;
    text-decoration: none;
    border-radius: 5px;

    transition: background 0.3s;
    margin: 10px 0;
}

.download-btn:hover {
    background: #27ae60;
}

.count-circle{
display: inline-flex;
    border-radius: 100%;
    background: #00000047;
    width: 21px;
    height: 21px;
    justify-content: center;
}