*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Sansation';
    src: url('./fonts/Sansation/SansationRegular.woff') format('woff'),
    url('./fonts/Sansation/SansationRegular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Sansation';
    src: url('fonts/Sansation/SansationBold.woff') format('woff'),
    url('fonts/Sansation/SansationBold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter/Inter-Regular.woff') format('woff'),
    url('fonts/Inter/Inter-Regular.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

body{
    /* background-color: #FCE6FB; */
    background-color: #efe7ff;
}

label{
    font-family: 'Inter';
}

h1, h2, h3, h4{
    font-family: 'Sansation';
    font-weight: bold;
}

h1{
    font-size: 40px;
    margin: 15px 0;
}

h2{
    font-size: 32px;
}

h3{
    font-size: 28px;
}

h4{
    font-size: 24px;
}

a{
    text-decoration: none;
    color: #000000;
}

p{
    font-family: 'Inter';
}

a:active{
    color: #000000;
}

.date{
    gap: 20px;
}

.date .input-label, .list-students .double-input{
    justify-content: space-between;
    flex-grow: 1;
}



.btn-form,.file:hover{ 
    cursor: pointer;
}

.container{
    padding: 10px;
}

.d-flex-row{
    display: flex;
    flex-direction: row;
}

.d-flex-col{
    display: flex;
    flex-direction: column;
}

.double-input{
    gap: 10px;
}

.rad-10{
    border-radius: 10px;
}

.gray{
    color: #838383;
}

.login-container{
    display: flex;
    justify-content: center;
}

.login-form-block{
    max-width: 600px;
    margin: 50px 0;
    background-color: #FFFFFF;
    padding: 15px 20px;
}

.login-form-block h2{
    text-align: center;
    font-family: 'Sansation';
    font-weight: bold;
    margin: 15px 0;
}

.reg-inp-block{
    background-image: linear-gradient(to bottom right, #c6a5ff, #5e66ff);
    box-shadow: 2px 2px 10px #39307f51;
    padding: 20px 30px;
    gap: 20px;
}

.reg-inp-block .inp{
    border: 2px solid #FFFFFF;
    background: none;
    padding: 5px 10px;
    width: 400px;
    
}
.reg-inp-block .inp::placeholder{
    color: #a39fa77e;
    
}

.reg-inp-block label{
    color: #FFFFFF;
}

.reg .btn-form{
    margin: 15px 0;
}

.inp{
    height: 35px;
    background: none;
    padding: 5px 10px;
    font-family: 'Inter';
    border: 3px solid transparent;
    background-image: linear-gradient(to bottom right, #c6a5ff, #5e66ff);
    box-shadow: inset 0px 0px 0px 100vw #fff;
    border-radius: 10px;
}

textarea{
    max-width: 610px;
    min-width: 100%;
    min-height: 100px;
    padding: 15px;
}

.remove-btn{
    background-image: linear-gradient(to bottom right,  #ff86b3, #ff009d) !important;
}

.remove-btn:hover{
    box-shadow: 0 0 10px #ff008c !important;
}

.btn-form{
    height: 35px;
    background-image: linear-gradient(to bottom right, #c6a5ff, #5e66ff);
    border-style: none;
    padding: 5px 10px;
    font-family: 'Sansation';
    font-weight: bold;
    font-size: 18px;
    color: #FFFFFF;
    transition: ease-in-out .3s;
}

.btn-form:hover, .arrow-btn:hover{
    box-shadow: 0 0 10px #5e66ff;
}

.btn-form:active, .arrow-btn:active{
    scale: 98%;
}

main{
    margin-left: 210px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.grid-2{
    display: grid;
    grid-template-columns: auto auto;
    gap: 5px;
}

.grid-3{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.main-list{
    grid-template-columns: 3fr 1fr;
}

.event-form .inp{
    border: 3px solid transparent;
    background-image: linear-gradient(to bottom right, #c6a5ff, #5e66ff);
    box-shadow: inset 0px 0px 0px 100vw #fff;
    border-radius: 10px;
}

.event-form .section{
    background-color: #FFFFFF;
    padding: 15px;
    margin-bottom: 10px;
}

.section{
    background-color: #FFFFFF;
    padding: 15px;
    margin-bottom: 10px;
}

aside{
    margin: 10px;
    padding: 15px;
    height: 100%;
    width: 200px;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #ffffff;
    overflow-x: hidden;
    padding-top: 20px;
}

aside button{
    margin: 20px 0;
    bottom: 0;
}


.side-cont{
    height: 100%;
    justify-content: space-between;
}

.side-tab{
    font-family: 'Inter';
    font-weight: normal;
    margin: 10px 0;
}

.side-tab{
    transition: ease-in-out .2s;
    padding: 10px;
}

.side-tab:hover{
    background-color: #efe7ff;
    cursor: pointer;
}

.list{
    padding: 20px 0;
    gap: 10px;
}

.list .d-flex-col{
    margin: 15px 0;
    gap: 5px;
}

.input-with-button {
    display: flex;
    align-items: center;
    margin: 0 0;
    margin-bottom: 5px;
}

.input-with-button input{
    flex: 1;
    padding: 10px;
    font-size: 14px;
    border-radius: 10px;
    border: 3px solid transparent;
    background-image: linear-gradient(to bottom right, #c6a5ff, #5e66ff);
    box-shadow: inset 0px 0px 0px 100vw #fff;
    outline: none;
}

.input-with-button input:nth-child(1), .input-with-button select:nth-child(1){
    border-radius: 10px !important;
}

.input-with-button button {
    margin: 0 5px;
    padding: 10px 15px;
    font-size: 18px;
    border-radius: 10px;
}


.custom-file-upload {
    position: relative;
    display: inline-block;
    background-color: #ffffff;
    border-radius: 10px;
    border: 3px solid transparent;
    background-image: linear-gradient(to bottom right, #c6a5ff, #5e66ff);
    box-shadow: inset 0px 0px 0px 100vw #fff;
}

.custom-file-upload input[type="file"] {
    opacity: 0;
    position: absolute;
    z-index: 1;
}

.custom-file-upload label {
    display: inline-block;
    border-style: none;
    padding: 5px 10px;
    font-family: 'Sansation';
    font-weight: bold;
    background-image: linear-gradient(to bottom right, #c6a5ff, #5e66ff);
    color: white;
    font-size: 18px;
    border-radius: 7px;
    transition: ease-in-out .3s;
}

.custom-file-upload label:hover {
    box-shadow: 0 0 10px #5e66ff;
}

.custom-file-upload span {
    margin-left: 10px;
    font-family: 'Inter';
    font-size: 14px;
    color: #9c94a7;
}

.select2-container {
    width: 100% !important;
}

.select2-selection {
    height: 35px !important;
    border: 3px solid transparent !important;
    background-image: linear-gradient(to bottom right, #c6a5ff, #5e66ff) !important;
    box-shadow: inset 0px 0px 0px 100vw #fff !important;
    border-radius: 10px !important;
    padding: 0 10px !important;
    font-size: 14px !important;
    color: #000000 !important;
    font-family: 'Inter' !important;
}

/* Кастомизация поля поиска */
.select2-search__field {
    background-color: transparent !important;
    border: 2px solid #5e66ff !important;
    outline: none !important;
    font-size: 14px !important;
    color: #000000 !important;
}

/* Кастомизация выпадающего списка */
.select2-dropdown {
    border: 2px solid #5e66ff !important;
    border-radius: 10px !important;
    font-family: 'Inter' !important;
    font-size: 14px !important;
    color: #000000 !important;
}

.select2-results__option {
    padding: 10px !important;
    font-size: 14px !important;
    font-family: 'Inter' !important;
    color: #000000 !important;
}

.select2-results__option--highlighted {
    background-color: #ffffff !important;
    color: #000000 !important;
}

.select2-selection__rendered {
    font-weight: bold !important;
    color: #000000 !important;
    border-style: 1px solid #FFFFFF !important;
}

.select2-selection__choice__remove, .select2-selection__choice{
    background-image: linear-gradient(to bottom right, #c6a5ff, #5e66ff) !important;
    color: #ffffff !important;  

}

.event-list{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    width: 100%;
}

.section-event{
    background-color: #FFFFFF;
    padding: 15px;
}

.event-block{
    background-image: linear-gradient(114.62deg, #c6a5ff 23.59%, #5e66ff 84.97%);
    box-shadow: 4px 4px 10px rgba(54, 30, 68, 0.25);
    margin: 20px 0;
    transition: ease-in-out .2s;
}

.event-block:hover{ transform: scale(105%);
    cursor: pointer;
}

.event-block img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.btn-card{
    border: 2px solid #FFFFFF;
    background-color: none;
}

.event-info{
    padding: 15px;
    font-family: 'Inter';
    color: #FFFFFF;
}
.event-info p{
    margin: 15px 0;
}
.event-info a{
    color: #FFFFFF;
}

.section-count{
    background-color: #FFFFFF;
    padding: 15px;
    text-align: center;
}

.num-block{
    background-image: linear-gradient(114.62deg, #c6a5ff 23.59%, #5e66ff 84.97%);
    padding: 10px;
    margin: 15px 0;
}

.num-block span{
    font-family: 'Sansation';
    font-weight: bold;
    color: #FFFFFF;
    font-size: 25px;
}

.filter-bar{
    padding: 5px;
    background-image: linear-gradient(to bottom right, #c6a5ff, #5e66ff);
}

.f-line{
    gap: 20px;
}

.f-line .inp{
    border: 3px solid transparent;
    background-image: linear-gradient(to bottom right, #c6a5ff, #5e66ff);
    box-shadow: inset 0px 0px 0px 100vw #fff;
    border-radius: 10px;
}

.arrows-block{
    justify-content: space-between;
}

.arrow-btn{
    background-image: linear-gradient(to bottom right, #c6a5ff, #5e66ff);
    color: #FFFFFF;
    padding: 10px 15px;
    font-size: 20px;
    font-weight: bold;
    border-style: none;
    transition: ease-in-out .3s;
}


.table {
	width: 100%;
	border: none;
	margin: 20px 0;
}
.table thead th, .table .subtitle {
    font-family: 'Sansation';
	font-weight: bold;
	text-align: left;
	border: none;
	padding: 10px 15px;
	background: #5e66ff;
	font-size: 14px;
    color: #FFFFFF !important;
}
.table .subtitle a{color: #ffffff;}
.table .subtitle{
    border-radius: 8px !important;
}
.table thead tr th:first-child {
	border-radius: 8px 0 0 8px;
}
.table thead tr th:last-child {
	border-radius: 0 8px 8px 0;
}
.table tbody td {
    font-family: 'Inter';
	text-align: left;
	border: none;
	padding: 5px 15px;
	font-size: 14px;
	vertical-align: center;
}
.table tbody tr:nth-child(even){
	background: #f3f3f3;
}
.table tbody tr td:first-child {
	border-radius: 8px 0 0 8px;
}
.table tbody tr td:last-child {
	border-radius: 0 8px 8px 0;
}

.table input, select{
    width: 100%;
}

.table button img{
    max-width: 25px;
}

td .doc-icon{
    max-width: 30px;
}

.isset-file{
    align-items: center;
    gap: 15px
}

.file-edit{
    max-width: 150px;
    margin: 10px 0 0 0;
}

.doc-icon{
    max-width: 50px;
}

.isset-file-name{
    font-family: 'Inter';
}

.list select{
    margin-bottom: 5px;
}

.competitor{
    border-radius: 10px;
    padding: 20px 5px;
    margin: 20px 0;
    box-shadow: 0 0 5px #1a00ad51;
}

.info #lesson{
    flex: 1;
    min-width: 300px;
}

.info .input-with-button{
    flex: 1 1 auto; 
    min-width: 400px;
}

.info, .nomination-block{
    font-family: 'Inter';
    margin: 15px 0;
    gap: 10px;
}

.info .d-flex-col, .nomination-block .d-flex-col{
    gap: 10px;
}

.info span, .nomination-block span{
    font-family: 'Sansation';
    font-weight: bold;
}

.info img{
    max-width: 400px;
}

.event-nominations .nomination-block{
    padding: 10px 0;
    border-bottom: 2px solid #5e66ff;
}

 .image-uploader {
            max-width: 600px;
            margin: 20px auto;
            padding: 20px;
            border: 2px dashed #ccc;
            border-radius: 8px;
            text-align: center;
            font-family: 'Inter';
}
        
.upload-label {
        display: block;
        margin-bottom: 15px;
        font-size: 18px;
        color: #555;
}
        
#file-input {
    display: none;
}
        
.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}
        
.image-preview {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}
        
.image-wrapper {
    position: relative;
    display: inline-block;
}
        
.remove-img-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #ff009d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: ease-in-out .2s;
}
        
.remove-img-btn:hover {
    background-color: #d30074;
}

.competitor.deleted, .nomination.deleted {
    opacity: 0.5;
    background-color: #ffeeee;
    position: relative;
}

.competitor.deleted::after, .nomination.deleted::after {
    font-family: 'Inter';
    content: "Будет удалено";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ff008c;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

.gallery{
    margin: 20px 0;
}

.gallery img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 5px #0e007951;
    transition: ease-in-out .2s;
}

.gallery img:hover{
    transform: scale(105%);
}
/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    display: block;
    margin: 60px auto;
    max-width: 80%;
    max-height: 80vh;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0.5); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: #bbb;
    transform: scale(1.2);
}

.d-none{
    display: none;
}