/* ============================================================
   Кубок Луча 2026 — кастомные стили поверх Bootstrap 3
   Inspired by Inspinia admin theme look
   ============================================================ */

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f3f3f4;
    color: #676a6c;
    font-size: 13px;
    line-height: 1.5;
}

/* .row внутри .user-button и других обёрток без .container — без отрицательных margin */
.user-button .row {
    margin-left: 0;
    margin-right: 0;
}

a { color: #1ab394; }
a:hover, a:focus { color: #18a689; text-decoration: none; }

h1, h2, h3, h4, h5 {
    font-weight: 600;
    color: inherit;
}

/* ====== Top Navigation ====== */
.navbar-static-top {
    background-color: #fff !important;
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    min-height: 60px;
}

.row.border-bottom.white-bg {
    background: #fff;
    border-bottom: 1px solid #e7eaec;
}

.navbar-brand {
    color: #2f4050 !important;
    font-weight: 700;
    font-size: 18px;
    height: 60px;
    line-height: 28px;
    padding: 16px 20px;
}

.navbar-static-top .nav > li > a {
    color: #676a6c;
    font-weight: 600;
    padding: 20px 18px;
    transition: color 0.2s;
}

.navbar-static-top .nav > li > a:hover,
.navbar-static-top .nav > li > a:focus {
    background: transparent;
    color: #1ab394;
}

.navbar-static-top .nav > li.active > a {
    color: #1ab394;
    background: transparent;
    border-bottom: 2px solid #1ab394;
}

.navbar-toggle.btn-primary {
    background: #1ab394;
    border-color: #1ab394;
}

/* ====== Wrapper / Content ====== */
.wrapper-content {
    padding: 20px 10px 40px;
}

/* ====== IBOX (карточки) ====== */
.ibox {
    clear: both;
    margin-bottom: 25px;
    margin-top: 0;
    padding: 0;
}

.ibox.float-e-margins {
    margin-bottom: 20px;
}

.ibox-title {
    -webkit-border-top-left-radius: 3px;
    -moz-border-radius-topleft: 3px;
    border-top-left-radius: 3px;
    -webkit-border-top-right-radius: 3px;
    -moz-border-radius-topright: 3px;
    border-top-right-radius: 3px;
    -webkit-border-bottom-right-radius: 0;
    -moz-border-radius-bottomright: 0;
    border-bottom-right-radius: 0;
    -webkit-border-bottom-left-radius: 0;
    -moz-border-radius-bottomleft: 0;
    border-bottom-left-radius: 0;
    background-color: #fff;
    border-color: #e7eaec;
    border-image: none;
    border-style: solid solid none;
    border-width: 3px 0 0;
    color: inherit;
    min-height: 48px;
    padding: 14px 15px 7px;
}

.ibox-title h5 {
    display: inline-block;
    font-size: 14px;
    margin: 0 0 7px;
    padding: 0;
    text-overflow: ellipsis;
    font-weight: 700;
    color: #2f4050;
}

.ibox-content {
    background-color: #fff;
    color: inherit;
    padding: 15px 20px 20px;
    border-color: #e7eaec;
    border-image: none;
    border-style: solid solid none;
    border-width: 1px 0;
}

.ibox-content.no-padding {
    padding: 0;
}

.ibox-content.border-left-right {
    border-width: 0;
}

.ibox-content.profile-content {
    border-top: none;
}

/* ====== Left Sidebar Card ====== */
.col-md-4 .ibox img.img-responsive {
    width: 100%;
    display: block;
}

.profile-content h4 {
    font-size: 16px;
    margin: 0 0 8px;
    color: #2f4050;
}

.profile-content h5 {
    font-size: 13px;
    margin: 16px 0 4px;
    font-weight: 700;
    color: #2f4050;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-content p {
    margin: 0 0 6px;
    color: #676a6c;
}

.profile-content p .fa {
    color: #1ab394;
    margin-right: 6px;
}

/* Logo as image */
.logo-block--image {
    background: #fff !important;
    padding: 12px !important;
    text-align: center;
}

.logo-block--image::before,
.logo-block--image::after {
    display: none;
}

.logo-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 260px;
    margin: 0 auto;
}

/* Logo block — граффити (запасной CSS-вариант) */
.logo-block {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c1810 50%, #1a1a1a 100%);
    color: #fff;
    padding: 24px 16px 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.logo-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 30%, rgba(255, 60, 100, 0.25) 0%, transparent 55%),
        radial-gradient(circle at 75% 70%, rgba(255, 200, 50, 0.18) 0%, transparent 55%);
    pointer-events: none;
}

.logo-block::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.03) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.03) 50%, transparent 52%);
    background-size: 12px 12px;
    pointer-events: none;
}

.logo-block .logo-text {
    font-family: 'Bebas Neue', 'Oswald', Impact, sans-serif;
    font-size: 84px;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
    position: relative;
    transform: skewX(-6deg);
    display: inline-block;
}

.logo-block .logo-text-p1 {
    color: #ff3c64;
    text-shadow:
        3px 3px 0 #1a1a1a,
        4px 4px 0 #ffd700,
        -1px -1px 0 #fff,
        1px 1px 8px rgba(255, 60, 100, 0.6);
}

.logo-block .logo-text-p2 {
    color: #ffd700;
    text-shadow:
        3px 3px 0 #1a1a1a,
        4px 4px 0 #ff3c64,
        -1px -1px 0 #fff,
        1px 1px 8px rgba(255, 215, 0, 0.6);
}

.logo-block .logo-cup {
    font-family: 'Bebas Neue', 'Oswald', Impact, sans-serif;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 10px;
    margin: -4px 0 10px 10px;
    color: #fff;
    text-shadow: 2px 2px 0 #1a1a1a, 3px 3px 0 #ff3c64;
    transform: skewX(-6deg);
    display: inline-block;
    position: relative;
}

.logo-block .logo-date {
    background: #1ab394;
    color: #fff;
    display: inline-block;
    padding: 7px 16px;
    font-family: 'Bebas Neue', 'Oswald', Impact, sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 2px;
    border-radius: 2px;
    margin-top: 6px;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
    position: relative;
}

/* ====== User buttons (sidebar) ====== */
.user-button {
    margin-top: 14px;
}

.user-button .row {
    margin-bottom: 8px;
    margin-left: 0;
    margin-right: 0;
}

.btn-outline.btn-primary {
    color: #1ab394 !important;
    background-color: transparent;
    border-color: #1ab394;
    transition: all 0.2s;
}

.btn-outline.btn-primary:hover,
.btn-outline.btn-primary:focus {
    color: #fff !important;
    background-color: #1ab394;
    border-color: #1ab394;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-primary {
    background-color: #1ab394;
    border-color: #1ab394;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #18a689;
    border-color: #18a689;
}

/* ====== Content Section (right column) ====== */
.col-md-8 .ibox-title h5 {
    font-size: 16px;
}

.content-text {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.content-text > .page-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: #2f4050;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1ab394;
}

.content-text h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1ab394;
    margin: 26px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #d6dde0;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.content-text h3:first-child { margin-top: 0; }

.content-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: #2f4050;
    margin: 16px 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.content-text p {
    margin: 0 0 10px;
}

.content-text ul, .content-text ol {
    padding-left: 22px;
    margin: 6px 0 12px;
}

.content-text li {
    margin: 3px 0;
}

.content-text a:not(.btn) {
    color: #1ab394;
    text-decoration: underline;
}

.content-text a.btn,
.content-text a.btn:hover,
.content-text a.btn:focus {
    color: #fff;
    text-decoration: none;
}

.content-text strong {
    color: #2f4050;
}

/* ====== Schedule Table ====== */
.schedule-table {
    width: 100%;
    margin: 8px 0 12px;
    border: 1px solid #e7eaec;
}

.schedule-table th, .schedule-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e7eaec;
    text-align: left;
    font-size: 13px;
}

.schedule-table thead th {
    background: #f8f8f8;
    font-weight: 700;
    color: #2f4050;
}

.schedule-table tbody tr:nth-child(even) td {
    background: #fafafa;
}

/* ====== Packages ====== */
.packages-row {
    display: flex;
    gap: 12px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.pkg {
    flex: 1;
    min-width: 180px;
    border: 1px solid #e7eaec;
    border-top: 3px solid #1ab394;
    padding: 16px;
    background: #fff;
}

.pkg .pkg-name {
    font-weight: 700;
    color: #2f4050;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.pkg .pkg-price {
    font-size: 22px;
    font-weight: 800;
    color: #1ab394;
    margin: 6px 0 10px;
}

.pkg ul {
    padding-left: 18px;
    margin: 0;
    font-size: 12px;
}

.pkg ul li {
    margin: 2px 0;
}

/* ====== Form (Bootstrap horizontal) ====== */
.form-horizontal .control-label {
    font-weight: 600;
    color: #2f4050;
    padding-top: 8px;
    font-size: 13px;
}

.form-horizontal .form-control {
    height: 34px;
    font-size: 13px;
    border-radius: 2px;
    border-color: #e5e6e7;
    box-shadow: none;
}

.form-horizontal textarea.form-control {
    height: auto;
    min-height: 80px;
}

.form-control:focus {
    border-color: #1ab394;
    box-shadow: none;
}

.form-control.error {
    border-color: #ed5565;
    background: #fff8f8;
}

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

.form-actions {
    border-top: 1px solid #e7eaec;
    padding-top: 16px;
    margin-top: 18px;
    text-align: right;
}

.required-mark {
    color: #ed5565;
    margin-left: 2px;
}

.consent-box {
    border: 1px solid #e7eaec;
    background: #fafafa;
    padding: 12px 14px;
    border-radius: 3px;
    font-size: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.consent-box input[type="checkbox"] {
    margin-top: 3px;
}

.consent-box label {
    margin: 0;
    font-weight: 400;
    color: #676a6c;
    flex: 1;
    line-height: 1.5;
}

/* ====== Participants Table ====== */
.participants-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.participants-controls .form-control {
    height: 34px;
}

.search-input { flex: 1; min-width: 200px; }

.stats-pill {
    background: #2f4050;
    color: #fff;
    padding: 7px 14px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.stats-pill .count {
    color: #1ab394;
    font-weight: 800;
    font-size: 14px;
}

.participants-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.participants-table thead {
    background: #f8f8f8;
}

.participants-table th {
    padding: 10px 8px;
    text-align: left;
    font-weight: 700;
    color: #2f4050;
    border-bottom: 1px solid #e7eaec;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 11px;
}

.participants-table td {
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.participants-table tbody tr:hover { background: #fafafa; }

.badge-cat {
    display: inline-block;
    padding: 2px 8px;
    background: #e7f7f3;
    color: #1ab394;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #aaa;
}

.empty-state .icon {
    font-size: 36px;
    opacity: 0.4;
    margin-bottom: 8px;
}

.empty-state h4 {
    color: #2f4050;
    margin: 0 0 4px;
}

/* ====== Sponsors block ====== */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.sponsor-cell {
    height: 60px;
    background: #fafafa;
    border: 1px solid #e7eaec;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 11px;
    text-align: center;
    padding: 4px;
}

/* ====== Footer ====== */
.footer {
    background: #fff;
    border-top: 1px solid #e7eaec;
    color: #999;
    padding: 12px 20px;
    text-align: right;
    font-size: 12px;
    margin-top: 20px;
}

.footer a { color: #676a6c; }

/* ====== Alerts / Toast ====== */
.alert-banner {
    background: #fff3cd;
    color: #856404;
    padding: 10px 14px;
    border-left: 4px solid #ffc107;
    margin-bottom: 14px;
    font-size: 12px;
    border-radius: 2px;
}

.toast {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    min-width: 260px;
    max-width: 360px;
    padding: 12px 16px;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-left: 4px solid #1ab394;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.25s, transform 0.25s;
    font-size: 13px;
}

.toast.show { opacity: 1; transform: translateX(0); }
.toast.error { border-left-color: #ed5565; }
.toast.success { border-left-color: #1ab394; }

/* ====== Animations ====== */
.animated.fadeInRight {
    animation: fadeInRight 0.5s ease;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ====== Responsive ====== */
@media (max-width: 991px) {
    .col-md-4, .col-md-8 { width: 100%; }
    .col-md-4 { margin-bottom: 20px; }
}

@media (max-width: 767px) {
    .logo-block .logo-text { font-size: 48px; }
    .logo-block .logo-cup { font-size: 24px; letter-spacing: 5px; }
    .navbar-static-top .nav > li > a { padding: 14px 12px; }
    .navbar-brand { padding: 14px 16px; font-size: 16px; }
    .form-horizontal .control-label { text-align: left; padding-top: 0; margin-bottom: 4px; }
}
