/*!
 * NICHE Landing Page
 * Custom Stylesheet for this Landing Page
 * Landing Page (https://cpacodex.com)
 * Copyright 2014-2019 CPACodex Web Services
 * Licensed under MIT 
 */

 /* Global Changes */
       body {
      background: #000;
      color: #fff;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    .app-wrapper {
      max-width: 420px;
      margin: 20px auto 40px;
    }

    /* top bar */
    .top-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 6px 4px 10px;
    }
    .top-left-icons {
      display: flex;
      align-items: center;
    }
    .icon-btn {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: #181818;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 8px;
      font-size: 16px;
    }
    .app-title {
      font-weight: 700;
      letter-spacing: 1.5px;
      font-size: 18px;
    }

    /* avatars row */
    .avatar-strip {
      height: 140px;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      padding: 0 10px;
      margin-bottom: 15px;
    }
    .avatar-strip img {
      height: 130px;
      object-fit: contain;
    }

    /* username bar */
    .username-bar {
      background: #1e1e1e;
      border-radius: 999px;
      padding: 8px 16px;
      margin-bottom: 20px;
      min-height: 52px;
      display: flex;
      align-items: center;
    }

    /* IDLE */
    #stateIdle {
      display: flex;
      align-items: center;
      width: 100%;
    }
    #usernameInput {
      background: transparent;
      border: 0;
      color: #fff;
      flex: 1;
      outline: none;
      font-size: 16px;
    }
    #usernameInput::placeholder {
      color: #9b9b9b;
    }
    .btn-connect {
      border-radius: 999px;
      padding: .45rem 1.4rem;
      font-weight: 500;
      font-size: .9rem;
      background: #2b2b2b;
      border: 0;
      color: #fff;
    }

    /* CONNECTING */
    #stateConnecting {
      width: 100%;
      display: none; /* toggle with JS */
      align-items: center;
      justify-content: center;
      font-size: 14px;
    }
    .connecting-inner {
      display: flex;
      align-items: center;
    }
    .connecting-inner i {
      margin-right: 8px;
      font-size: 13px;
    }

    /* CONNECTED */
    #stateConnected {
      width: 100%;
      display: none;
      align-items: center;
      justify-content: space-between;
    }
    .connected-left {
      display: flex;
      align-items: center;
      font-size: 14px;
    }
    .connected-left i {
      margin-right: 8px;
      font-size: 16px;
      color: #39d353;
    }
    .btn-change {
      border-radius: 999px;
      padding: .35rem 1.1rem;
      font-size: .85rem;
      background: #2b2b2b;
      border: 0;
      color: #fff;
      font-weight: 500;
    }

    .btn-connect:hover, .btn-connect:focus { 
    	color: lightblue;
    }

	.btn-change:hover, .btn-change:focus { 
    	color: lightblue;
    }

    /* main panel & items */
    .features-panel {
      background: #070707;
      border-radius: 26px;
      padding: 10px 0 16px;
      margin-top: 4px;
      transition: opacity .25s ease;
    }
    /* DISABLED state – visible but dim + not clickable */
    .features-panel.disabled {
      opacity: .3;
      pointer-events: none;
    }

    .feature-item {
      cursor:pointer;
      margin: 8px 14px;
      background: #181818;
      border-radius: 18px;
      padding: 10px 14px;
      display: flex;
      align-items: center;
      color: #fff;
    }
    .feature-icon {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      background: #262626;
      margin-right: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
    }
    .feature-text {
      flex: 1;
    }
    .feature-title {
      font-size: .95rem;
      font-weight: 600;
      margin-bottom: 2px;
    }
    .feature-subtitle {
      font-size: .75rem;
      color: #b0b0b0;
      margin-bottom: 0;
    }
    .feature-chevron {
      font-size: .8rem;
      color: #707070;
    }

    .avatar-group {
  justify-content: center;        /* centriraj */
  height: 150px;                  /* ako treba više prostora */
}

.avatar-group img {
  height: 150px;
  width: auto;
  object-fit: contain;
}

/* Background blur */
.bf-modal-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 1000;
}

/* Modal container */
.bf-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 92%;
    max-width: 380px;
    background: #0b0b0b;
    border-radius: 20px;
    z-index: 1001;
    padding: 15px 0 5px 0;
    opacity: 0;

    transition: .25s ease;
}

/* SNAPCHAT ANIMATION */
.bf-modal.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Header */
.bf-header {
    padding: 5px 20px 15px;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bf-header i {
    font-size: 20px;
    color: #fff;
    cursor: pointer;
}

/* List container */
.bf-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0 15px 15px;
}

/* Single friend row */
.bf-item {
    display: flex;
    align-items: center;
    padding: 10px 5px;
}

/* Avatar */
.bf-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
}

/* Text */
.bf-info {
    flex: 1;
}

.bf-name {
    font-size: 16px;
    font-weight: 500;
}

.bf-streak {
    font-size: 13px;
    opacity: .75;
}

/* Select circle */
.bf-select {
    width: 24px;
    height: 24px;
    border: 2px solid #aaa;
    border-radius: 50%;
}

.bf-select.selected {
    border-color: #ffd600;
    background: #ffd600;
}


.bf-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 12px;

    background-image: url('../images/bf-sprite.png');
    background-repeat: no-repeat;
    background-size: 300% 200%;

    border: 3px solid #b06cff;   /* Snapchat purple ring */
    padding: 2px;                /* space before the actual avatar */
    box-sizing: border-box;
    background-clip: padding-box;
}


.av1 { background-position:   0%   0%; }
.av2 { background-position:  50%   0%; }
.av3 { background-position: 100%   0%; }
.av4 { background-position:   0% 100%; }
.av5 { background-position:  50% 100%; }
.av6 { background-position: 100% 100%; }
