* {
  margin: 0;
  padding: 0;
}

body,
a {
  background: #272822;
  color: #eee;
  font-family: 'Source Code Pro';
  font-size: 15px;
  height: 100%;
  margin-top: 10px;
  text-decoration: none;
  width: 100%;
}

a:hover {
  color: #cc4436;
}

.im-coder-logo {
  background: url('../img/logo.png') no-repeat 0 0;
  background-size: contain;
  height: 100px;
  margin: 50px auto;
  max-width: 400px;
}

.im-coder-slogan {
  margin: 20px;
}

.im-coder-editor {
  counter-reset: listing;
  position: relative;
  white-space: pre;
  word-wrap: break-word;
}

.im-coder-editing {
  margin-top: -18px;
}

.im-coder-editor:after {
  border-bottom: 18px solid rgba(255, 255, 255, .1);
  bottom: 1px;
  content: " ";
  color: gray;
  display: inline-block;
  left: 0;
  min-width: 100%;
  position: absolute;
  text-align: right;
  z-index: 2;
}

.im-coder-line {
  counter-increment: listing;
  width: 100%;
}

.im-coder-line:before {
  content: counter(listing) " ";
  color: rgba(255, 190, 0, .6);
  display: inline-block;
  text-align: right;
  margin-right: 20px;
  min-width: 40px;
}

.im-coder-sidebar {
  color: rgba(255, 255, 255, .9);
  background: #272822;
  display: block;
  height: 100%;
  left: 0;
  position: absolute;
  width: 100%;
  text-align: center;
  top: 0;
  z-index: 2;
}

.im-coder-langs {
  list-style: none;
  margin: 50px auto 20px auto;
  max-width: 800px;
  width: 100%;
}

.im-coder-lang {
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
  margin: 0 0 15px 0;
  opacity: .8;
  position: relative;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
  white-space: nowrap;
  width: 150px;
}

.im-coder-lang button {
  background: #cc4436;
  border-radius: 4px;
  color: #fff;
  border: none;
  cursor: pointer;
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px;
  font-weight: bold;
}

.im-coder-lang:hover {
  opacity: 1;
}

.im-coder-paste {
  background: #272822;
  border: 1px dashed rgba(255, 255, 255, .3);
  color: #F8F8F2;
  font-family: 'Source Code Pro';
  font-size: 15px;
  height: 80px;
  margin-top: 10px;
  padding: 10px;
  resize: none;
  text-align: center;
  text-decoration: none;
  width: 70%;
  max-width: 610px;
}

.im-coder-footer {
  margin: 50px 10px 10px 10px;
  max-height: 70px;
  text-align: center;
}

.im-coder-social {
  height: 27px;
  vertical-align: bottom;
}

.im-coder-copy {
  clear: both;
  display: block;
  margin-bottom: 20px;
}

.im-coder-♥ {
  color: #CC4436;
  display: inline-block;
  margin-top: 20px;
  -webkit-transform: scale(.8);
  -moz-transform: scale(.8);
  transform: scale(.8);
  -webkit-animation: im-coder-heart .6s infinite linear alternate-reverse;
  -moz-animation: im-coder-heart .6s infinite linear alternate-reverse;
  animation: im-coder-heart .6s infinite linear alternate-reverse;
}

.im-coder-characters {
  text-align: right;
  width: 50px;
}

@-webkit-keyframes im-coder-heart {
    to {-webkit-transform: scale(1.1);}
}

@-moz-keyframes im-coder-heart {
    to {-moz-transform: scale(1.2);}
}
@keyframes im-coder-heart {
    to {transform: scale(1.2);}
}

/* Status Bar */
.im-coder-statusbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background-color: #1e1e1e;
  border-top: 1px solid #3c3c3c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  font-size: 12px;
  color: #cccccc;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.im-coder-statusbar.visible {
  opacity: 1;
  visibility: visible;
}

.im-coder-statusbar-left,
.im-coder-statusbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.im-coder-statusbar-item {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 2px 10px;
}

.im-coder-statusbar-item:hover {
  background-color: #2a2d2e;
}

.im-coder-github-link {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.2s ease;
  margin: 0;
  background-color: transparent;
  font-size: 12px;
}

.im-coder-github-link:hover {
  color: #007acc;
}

.im-coder-icon-git::before {
  content: "⎇";
  font-size: 14px;
  color: #007acc;
}

.im-coder-editor {
  padding-bottom: 32px !important;
}

.im-coder-sidebar:not(.hidden) ~ .im-coder-statusbar {
  opacity: 0;
  visibility: hidden;
}

.im-coder-theme-selector {
  background-color: transparent;
  border: none;
  color: #cccccc;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.im-coder-theme-selector:hover {
  border-color: #007acc;
}

.im-coder-theme-selector:focus {
  border-color: #007acc;
  box-shadow: 0 0 0 1px rgba(0, 122, 204, 0.3);
}

.im-coder-theme-selector option {
  background-color: #2a2d2e;
  color: #cccccc;
}

/* Theme-specific styles */
.im-coder-theme-selector option[value="solarized_dark"] {
  background-color: #002b36;
}

.im-coder-theme-selector option[value="monokai"] {
  background-color: #272822;
}

.im-coder-theme-selector option[value="dracula"] {
  background-color: #282a36;
}

.im-coder-theme-selector option[value="github"] {
  background-color: #f6f8fa;
  color: #24292e;
}

.im-coder-theme-selector option[value="vs"] {
  background-color: #1e1e1e;
}

.im-coder-theme-selector option[value="atom"] {
  background-color: #161719;
}

.im-coder-theme-selector option[value="nord"] {
  background-color: #2e3440;
}

.im-coder-theme-selector option[value="material"] {
  background-color: #263238;
}

/* LenaJS Demo Banner */
.im-coder-banner {
  background: linear-gradient(135deg, #cc4436 0%, #ea666a 100%);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
  padding: 10px 10px 0 10px;
  position: static;
  margin-top: 50px;
  height: 50px;
  border-radius: 0;
}

.im-coder-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.im-coder-banner-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  backdrop-filter: blur(10px);
}

.im-coder-banner-text {
  flex: 1;
  color: white;
  min-width: 0;
}

.im-coder-banner-text h3 {
  font-size: 12px;
  font-weight: bold;
  margin: 0 0 3px 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  text-align: left;
}

.im-coder-banner-text p {
  font-size: 11px;
  margin: 0;
  opacity: 0.9;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

.im-coder-banner-action {
  flex-shrink: 0;
}

.im-coder-banner-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 11px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.im-coder-banner-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: white;
}

.im-coder-banner-button i {
  font-size: 10px;
}

/* Hide banner when sidebar is visible */
.im-coder-sidebar:not(.hidden) ~ .im-coder-banner {
  display: none;
}

/* Responsive design for the banner */
@media (max-width: 768px) {
  .im-coder-banner-content {
    gap: 8px;
  }
  
  .im-coder-banner-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  
  .im-coder-banner-text h3 {
    font-size: 13px;
  }
  
  .im-coder-banner-text p {
    font-size: 10px;
    padding: 0;
    margin: 0;
    text-align: left;
  }
  
  .im-coder-banner-button {
    padding: 5px 8px;
    font-size: 10px;
  }
}
