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

body {
    background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), url("../../web/uploads/20200116044637_Abstrakciya_geometriya_5-175.jpg") no-repeat;
    background-size: cover;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
}

main .container {
    min-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Source Sans Pro', 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #393939;
}

.navbar-brand {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #2c3e50 !important;
    letter-spacing: -0.5px;
}

.container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    flex: 1 0 auto;
}

.main-content {
    flex: 1 0 auto;
    width: 100%;
}

.card {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: white;
    transition: box-shadow 0.3s ease;
    margin-bottom: 20px;
    width: 100%;
}

.card:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card-header {
    background-color: #007bff;
    color: white;
    border-bottom: 1px solid #dee2e6;
    padding: 15px 20px;
    font-weight: 600;
}

.card-header.bg-primary {
    background-color: #007bff !important;
}

.card-body {
    padding: 20px;
}

.btn {
    border-radius: 4px;
    padding: 8px 20px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: none !important;
}

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

.btn-success:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-warning {
    color: #ffc107;
    border-color: #ffc107;
    background-color: transparent;
}
.btn-outline-warning:hover {
    color: #ffffff;
    border-color: #ffc107;
    background-color:  #ffc107;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
    transform: none !important;
}

.form-control {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 10px 15px;
    width: 100%;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.form-select {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 10px 15px;
    width: 100%;
}

.navbar {
    background-color: white;
    border-bottom: 1px solid #dee2e6;
    padding: 15px 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
}

.navbar-brand {
    font-weight: 700;
    color: #007bff !important;
    font-size: 1.5rem;
}

.nav-link {
    color: #495057 !important;
    font-weight: 500;
    padding: 8px 15px !important;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: #f8f9fa;
    color: #007bff !important;
}

.nav-link.active {
    background-color: #007bff;
    color: white !important;
}

.footer {
    background-color: #343a40;
    color: white;
    padding: 60px;
    margin-top: auto;
    border-top: 1px solid #dee2e6;
    width: 100%;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

.row {
    margin: 0;
    width: 100%;
}

.row > * {
    padding: 15px;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
}

.table th {
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    padding: 12px;
}
.table tr th a{
    color: #000000 !important;
}
.table td {
    padding: 12px;
    border-top: 1px solid #dee2e6;
}

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

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.875rem;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529;
}

.alert {
    border-radius: 4px;
    border: 1px solid transparent;
    padding: 15px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.fas, .fab {
    margin-right: 8px;
}

input[type="file"] {
    padding: 10px;
    border: 1px dashed #ced4da;
    border-radius: 4px;
    width: 100%;
}

input[type="file"]:hover {
    border-color: #007bff;
}

.img-thumbnail {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 4px;
    background-color: white;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate__fadeIn {
    animation: fadeIn 0.3s ease-out;
}

.breadcrumb {
    background-color: transparent;
    padding: 10px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}
.navbar-nav{
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .card-body {
        padding: 15px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .navbar-nav {
        margin-top: 10px;
    }

    .nav-link {
        padding: 8px 10px !important;
    }
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

.font-source-sans {
    font-family: 'Source Sans Pro', sans-serif;
}

:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.icon-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mt-5 { margin-top: 25px; }
.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }
.mb-5 { margin-bottom: 25px; }
.ml-1 { margin-left: 5px; }
.ml-2 { margin-left: 10px; }
.ml-3 { margin-left: 15px; }
.mr-1 { margin-right: 5px; }
.mr-2 { margin-right: 10px; }
.mr-3 { margin-right: 15px; }
.p-1 { padding: 5px; }
.p-2 { padding: 10px; }
.p-3 { padding: 15px; }
.p-4 { padding: 20px; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }

.video-background {
    position: absolute;
    right: 0;
    top: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 2;
    background: rgba(1,1,1,0.8) !important;
    overflow: hidden;
}

.video-background:before {
    content: "";
    position: absolute;
    background: rgba(0, 0, 0, 0.66);
    z-index: 103;
    width: 100%;
    height: 100%;
}

#myVideo {
    background: rgba(1,1,1,0.4) !important;
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 100;
    transform: translateX(-50%) translateY(-50%);
}
#header{
    z-index: 10;
    padding: 1vw 5vw 1vw;
    min-height: fit-content !important;
}
#header .navbar{
    border-radius: 5px;
}
.hero-section {
    background: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
}

.hero-section h1, .hero-section p{
    animation: fadeInUp 0.8s ease-out;
}

.hero-section{
    animation-delay: 0.2s;
}

/* админка */
#filter-form .form-control-sm {
    padding: 6px 10px;
    font-size: 0.875rem;
}

#filter-form .form-select-sm {
    padding: 6px 28px 6px 10px;
    font-size: 0.875rem;
}

.table th {
    background-color: #2c3e50;
    color: white;
    font-weight: 600;
    border: none;
    padding: 12px 15px;
}

.table td {
    padding: 10px 15px;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,0.02);
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

.btn-group-sm .btn {
    padding: 4px 8px;
    font-size: 0.875rem;
}

.pagination {
    margin-bottom: 0;
}

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    background-color: #007bff;
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 15px 20px;
}

.modal-title {
    font-weight: 600;
}

.toast {
    opacity: 1;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.toast.bg-success {
    background-color: #28a745 !important;
}

.toast.bg-error {
    background-color: #dc3545 !important;
}

.toast.bg-info {
    background-color: #17a2b8 !important;
}

@media (max-width: 768px) {
    .table-responsive {
        margin: 0 -15px;
        padding: 0 15px;
    }

    .table {
        font-size: 0.875rem;
    }

    .btn-group {
        flex-wrap: wrap;
    }

    #filter-form .col-md-3 {
        margin-bottom: 10px;
    }
}

.g-3 .col-md-3{
    margin-top: 0 !important;
}

.bl-but{
    flex-direction: column;
    height: 130px;
    overflow-y: scroll;
}
.bl-but form button{
    width: 100%;
    height: 70px;
    transform: none !important;
}
.bl-but a{
    width: 100%;
    height: 70px !important;
    transform: none !important;
}