*{
    margin: 0;
    padding: 0;
}
li{list-style-type: none}

html, body{
    min-height: 100%;
}
a{
    text-decoration: none;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    display: none;
    -webkit-appearance: none;
    margin: 0;
}
.login_link_wrapper{
    padding: 0 5px 10px 0;
}
.login_link_wrapper > a{
    color: #FFF;
    text-decoration: underline;
}
.login_link_wrapper > a:hover{
    text-decoration: none;
}
body{
    overflow-y: scroll;
    background: #FFF;
    font-family: gordita, Roboto, Tahoma, sans-serif;
    margin:0;
}
.none{
    display: none;
}
.alpha_wrapper{
    width: auto;
    padding: 4px 7px;
    font-size: 10px;
    color: #FFF;
    position: absolute;
    right: 30px;
    top: 0;
    background: darkred;
}
.navigate_wrapper {
    display: flex;
    align-items: center;
}
.navigate_wrapper a{
    color: #777;
    font-size: 12px;
    text-decoration: none;
    margin: 0 10px;
    text-transform: uppercase;
}
.navigate_wrapper a:hover{
    color: #000;
}
/* Header styles */
header {
    width: 100%;
    min-height: 90px;
    background-size: cover;
    border-bottom: #d5d5d5 solid 1px;
}
header > .inner {
    width: 98%;
    min-height: 90px;
    background: transparent;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo{
    position: relative;
}
.logo img{
    position: relative;
    opacity: 0.8;
}
.logo:hover img{
    opacity: 1;
}
.logo:after{
    content: 'for video surveillance';
    position: absolute;
    font-size: 9px;
    color: #888;
    bottom: -12px;
    right: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.breadcrumbs_wrapper{
    width: 100%;
    height: 25px;
    margin: 20px 0;
}
.breadcrumbs_wrapper > .inner{
    max-width: 98%;
    margin: 0 auto;
    /*padding: 15px 0;*/
}
.breadcrumbs_wrapper > .inner:after{
    content: '';
    clear: both;
    float: none;
}
ul.breadcrumbs{
    vertical-align: middle;
    margin-left: 20px;
}
ul.breadcrumbs > li{
    float: left;
    display: inline-block;
    line-height: 21px;
    margin: 0 28px 0 0;
    position: relative;
}
ul.breadcrumbs > li > a{
    font-size: 12px;
    vertical-align: middle;
    display: inline-block;
    color: #000;
    position: relative;
    text-transform: uppercase;
}
ul.breadcrumbs > li > a:hover{
    text-decoration: underline;
}
ul.breadcrumbs > li:after{
    content: '';
    position: absolute;
    top: 6px;
    right: -20px;
    display: inline-block;
    border: 5px solid transparent;
    border-left: 6px solid #000;
}
ul.breadcrumbs > li:before{
    content: '';
    position: absolute;
    top: 6px;
    right: -18px;
    display: inline-block;
    border: 5px solid transparent;
    border-left: 6px solid #FFF;
    z-index: 10;
}
ul.breadcrumbs > li:last-child > a{
    font-size: 12px;
    vertical-align: middle;
    color: #777;
}
ul.breadcrumbs > li:last-child > a:hover{
    color: #777;
    text-decoration: none;
    cursor: default;
}
ul.breadcrumbs > li:last-child:after{
    display: none;
}
ul.breadcrumbs:after{
    content: '';
    clear: both;
    float: none;
}

/*=== sidebar ===*/
.content_wrapper > .sidebar{
    width: 17%;
    background: #FFF;
    border-right: #FFF solid 15px;
}
ul.sidebar_list{
    width: 100%;
    /*border-top: orange solid 5px;*/
}
ul.sidebar_list > li{
    height: 40px;
    line-height: 40px;
    position: relative;
}
ul.sidebar_list > li.active{

}
ul.sidebar_list > li > a{
    display: block;
    width: 100%;
    height: 40px;
    background: #FFF;
    font-size: 12px;
    color: #333;
    vertical-align: middle;
    text-align: left;
    text-indent: 20px;
}
ul.sidebar_list > li > a:after{
    content: '';
    display: block;
    height: 40px;
    width: 3px;
    position: absolute;
    top: 0;
    left: 0;
    background: #FFF;
    z-index: 10;
}
ul.sidebar_list > li.active > a:after{
    background: #000;
}
ul.sidebar_list > li.active > a{
    background: #F2F2F2 linear-gradient(to right, #F2F2F2, #FFF);
}
ul.sidebar_list > li > a:hover{
    color: #1976d2;
    background: #F2F2F2 linear-gradient(to right, #F2F2F2, #FFF);
}
ul.sidebar_list > li > a:hover:after{
    background: #F2F2F2;
}
ul.sidebar_list > li.active > a:hover:after{
    background: #000;
}
.devices_info_wrapper{
    margin: 20px 0;
    display: none;
}

@media (max-width: 1000px) {
    .breadcrumbs_wrapper {
        width: 97.5%;
        margin: 25px auto;
    }
}

.content_wrapper {
    flex: 1;
    display: flex;
    padding: 0 0 30px 0;
}
.content_wrapper > .content{
    width: 82%;
}
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content_inner {
    flex: 1;
    padding: 20px;
}

/* Footer Styles */
.main_footer {
    padding: 40px 0 40px;
    background: #FFF;
    border-top: #F5F5F5 solid 20px;
    position: relative;
}
.footer_content {
    max-width: 1200px;
    margin: 0 auto;
}
.footer_content {
    max-width: 1200px;
    margin: 0 auto;
}
.footer_sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer_section h4 {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0 0 15px 0;
}

.footer_section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer_section ul li {
    margin-bottom: 10px;
}

.footer_section ul li:last-child {
    margin-bottom: 0;
}

.footer_section ul li a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer_section ul li a:hover {
    color: #1976d2;
}

.footer_bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.footer_info {
    font-size: 14px;
    color: #666;
}

.footer_info p {
    margin: 0;
}

.footer_version {
    margin-top: 5px !important;
    font-size: 12px !important;
    color: #999 !important;
}

.footer_bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: #E5E5E5 solid 1px;
}

.footer_apps {
    display: flex;
    gap: 15px;
}

.app_link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 0;
    background: transparent;
    border: 1px solid #888;
    transition: all 0.3s ease;
}

.app_link:hover {
    /*background: rgba(255, 255, 255, 0.15);*/
    transform: translateY(-2px);
    border-color: #444;
}

.app_link svg {
    width: 22px;
    height: 22px;
    fill: #888;
    transition: opacity 0.3s ease;
}

.app_link:hover svg {
    fill: #444;
}

@media (max-width: 768px) {
    .footer_bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer_apps {
        justify-content: center;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}

.btn_primary {
    background: #1976d2;
    color: #fff;
}

.btn_primary:hover {
    background: #1565c0;
}

.btn_secondary {
    background: #f5f5f5;
    color: #333;
}

.btn_secondary:hover {
    background: #e0e0e0;
}

.btn .icon {
    font-size: 16px;
}

/* Адаптивные стили */
@media (max-width: 1280px) {
    .footer_sections{
        margin: 0 30px;
        /*padding: 0 20px;*/
    }
    .footer_bottom{
        padding: 20px;
        margin: 25px 0 0 0;
    }
}
@media (max-width: 768px) {
    .main_footer {
        padding: 30px 0 15px;
    }
    .footer_sections {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer_bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer_actions {
        width: 100%;
        flex-direction: column;
    }

    .footer_actions .btn {
        width: 100%;
        justify-content: center;
    }
}
.alert {
    display: none;
    padding: 10px 20px;
    font-size: 14px;
    margin: -1px 0 0 0;
    position: relative;
    background: #FFF;
    border-top: #d5d5d5 dashed 1px;
    border-bottom: #d5d5d5 dashed 1px;
}
.alert > span{
    display: inline-block;
    margin-left: 22px;
}
.alert > .alert_close_modal{
    width: 30px;
    height: 30px;
    position: absolute;
    cursor: pointer;
    right: 5px;
    top: 3px;
    text-align: center;
    line-height: 35px;
    vertical-align: middle;
}
.alert > .alert_close_modal > img{
    opacity: 0.7;
}
.alert > .alert_close_modal:hover{
    background: #F5F5F5;
}
.alert > .alert_close_modal:hover > img{
    opacity: 1;
}
.alert-success{
    color: #388e3c;
}
.alert-error{
    color: #9e3a38;
}
.alert-warning{
    color: #8a6d3b;
}
.alert-info{
    color: #31708f;
}

.video-stats-block {
    background: #fff;
    border: 1px solid #ddd;
    /*border-radius: 4px;*/
    padding: 20px;
    margin-bottom: 30px;
}

.video-stats-header {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.video-stats-icon {
  width: 32px;
  height: 32px;
  margin-right: 12px;
}

.video-stats-title {
  font-size: 1.2em;
  font-weight: 700;
  color: #222;
  letter-spacing: 1px;
}

.video-stats-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-stats-item {
  display: flex;
  justify-content: space-between;
  font-size: 1.1em;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.video-stats-item:last-child {
  border-bottom: none;
}

.video-stats-label {
  color: #555;
}

.video-stats-value {
  color: #1e90ff;
  font-weight: 600;
  font-size: 1.15em;
}

.warning_modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.2s;
}
.warning_modal.active {
  display: flex;
}
.warning_modal:not(.active) {
  pointer-events: none;
  opacity: 0;
  display: none;
}
.warning_modal .modal_content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 32px 28px 24px 28px;
  min-width: 320px;
  max-width: 90vw;
  text-align: center;
  position: relative;
  /* animation: modalFadeIn 0.2s; */
}
.warning_modal .modal_header {
  margin-bottom: 12px;
}
.warning_modal .modal_title {
  font-size: 1.3em;
  font-weight: 600;
  color: #d9534f;
}
.warning_modal .modal_body {
  margin-bottom: 18px;
}
.warning_modal .modal_description {
  color: #333;
  font-size: 1.05em;
}
.warning_modal .modal_footer {
  margin-top: 10px;
}
.warning_modal .modal_button {
  background: #d9534f;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 22px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.15s;
}
.warning_modal .modal_button:hover {
  background: #c9302c;
}
.warning_modal .modal_close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5em;
  color: #888;
  cursor: pointer;
  transition: color 0.15s;
}
.warning_modal .modal_close:hover {
  color: #d9534f;
}
.warning_modal.active .modal_content {
  animation: modalFadeIn 0.22s cubic-bezier(.4,1.6,.6,1) both;
}

@keyframes modalFadeIn {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes modalFadeOut {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(30px); opacity: 0; }
}

.warning_modal .modal_content.fadeout {
  animation: modalFadeOut 0.18s cubic-bezier(.4,1.6,.6,1) both;
}


/** Pagination */
.pagination > span {
    width: 30px;
    height: 30px;
    display: inline-block;
    border: #DDD dashed 1px;
    color: #1976d2;
    font-size: 12px;
    font-weight: 500;
    margin: 0 1px;
    /*padding: 6px 13px;*/
    border-radius: 2px;
    cursor: pointer;
    text-align: center;
    line-height: 32px;
    vertical-align: middle;
    transition: background 0.2s, color 0.2s;
}
.pagination > span:hover{
    border: #777 dashed 1px;
}
.pagination > span:hover > a{
    color: #1463b1;
}
.pagination > span > a{
    width: 30px;
    height: 30px;
    color: #1976d2;
    display: inline-block;
}
.pagination .active,
.pagination .current {
    background: #1976d2;
    color: #FFF;
    border: 1px solid #1976d2;
    font-weight: bold;
}



























