/* Bootstrap 3 CDN - Core styles */
@import url('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css');

/* Dark theme overrides */
html, body {
    height: 100%;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: #c8c8c8;
    background-color: #272b30;
    padding-top: 50px;
}

h1, h2, h3 {
    margin-top: 0;
}

a {
    color: #ccc;
    text-decoration: none;
}

a:hover, a:focus {
    color: #fff;
    text-decoration: underline;
}

/* Dark theme well styling */
.well {
    min-height: 20px;
    padding: 19px;
    margin-bottom: 20px;
    background-color: #1c1e22;
    border: 1px solid #0c0d0e;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.05);
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.05);
}

/* List group items dark styling */
.list-group-item {
    background-color: #32383e;
    border: 1px solid rgba(0,0,0,0.6);
    color: #c8c8c8;
}

a.list-group-item, button.list-group-item {
    color: #c8c8c8;
}

a.list-group-item:hover, button.list-group-item:hover,
a.list-group-item:focus, button.list-group-item:focus {
    text-decoration: none;
    color: #c8c8c8;
    background-color: #3e444c;
}

/* Navbar Inverse Styling - Override Bootstrap */
.navbar-inverse {
    background: linear-gradient(to bottom, #3A3F44 0%, #2C3136 60%, #2A2E33 100%) !important;
    background-color: #3A3F44 !important;
    border: 1px solid rgba(0, 0, 0, 0.6) !important;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

.navbar-inverse .navbar-nav > li > a {
    border-right: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #C8C8C8 !important;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    background: linear-gradient(to bottom, #2A2E33 0%, #272B30 40%, #252A2F 100%) !important;
    border-left-color: transparent !important;
    color: #fff !important;
}

.navbar-inverse .navbar-brand {
    color: #C8C8C8 !important;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-brand:focus {
    color: #fff !important;
}

/* Table Striping - Override Bootstrap */
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #2D3136 !important; /* lighten(#272B30, 6%) */
}

.table-striped > tbody > tr:nth-of-type(even) {
    background-color: #2A2E33 !important; /* lighten(#272B30, 3%) */
}

.table-hover tbody tr:hover {
    background-color: #353A41 !important; /* lighten(#2A2E33, 12%) */
}

/* Breadcrumbs - Dark Theme */
.breadcrumb {
    background-color: #2A2E33 !important;
    border: 1px solid #1C1E22 !important;
}

.breadcrumb > li {
    color: #C8C8C8 !important;
}

.breadcrumb > li > a {
    color: #7A8288 !important;
}

.breadcrumb > li > a:hover {
    color: #fff !important;
}

.breadcrumb > .active {
    color: #C8C8C8 !important;
}

/* Pagination Dark Theme - Override Bootstrap */
.pagination {
    margin: 20px 0;
}

.pagination > li > a,
.pagination > li > span {
    background-color: #3A3F44 !important;
    border: 1px solid #2C3136 !important;
    color: #C8C8C8 !important;
}

.pagination > li > a:hover,
.pagination > li > a:focus,
.pagination > li > span:hover,
.pagination > li > span:focus {
    background-color: #2C3136 !important;
    border-color: #2C3136 !important;
    color: #fff !important;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
    background-color: #7A8288 !important;
    border-color: #7A8288 !important;
    color: #fff !important;
}

.pagination > .disabled > span,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > a:focus {
    background-color: #2A2E33 !important;
    border-color: #2C3136 !important;
    color: #52575C !important;
}

/* Application styles */
#main {
  padding-top:20px;
}
#sidebar {
  
}
#sidebar h3, #sidebar p.sub {
  text-align:center;
}
.page-header{
  margin-top:0;
}
/* Category App Listing */
.app-listing {cursor:pointer;}
.app-listing img, .recent-home-item img {border-radius: 18px;}

.img-home-portfolio {margin: 0 auto 30px;}

/* Home Page */
.cat-col {margin-bottom:20px;}

.recent-home-item img {
    margin: 30px auto 10px;
}

.recent-home-item a {
    color: #fff;
}

.cat-buttons a.btn, .browse-btns a.btn {
  -moz-box-shadow:inset 0px 1px 0px 0px #f29c93;
  -webkit-box-shadow:inset 0px 1px 0px 0px #f29c93;
  box-shadow:inset 0px 1px 0px 0px #f29c93;
  background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #fe1a00), color-stop(1, #ce0100) );
  background:-moz-linear-gradient( center top, #fe1a00 5%, #ce0100 100% );
  filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fe1a00', endColorstr='#ce0100');
  background-color:#fe1a00;
  text-indent:0;
  border:1px solid #d83526;
  display:inline-block;
  color:#ffffff;
  font-size:15px;
  font-weight:bold;
  font-style:normal;
  text-decoration:none;
  text-align:center;
  text-shadow:1px 1px 0px #b23e35;
  white-space: normal;
}
.browse-btns h2 {margin-bottom:20px;}
.browse-btns a.btn {margin:0 10px;}
.cat-buttons a.btn:hover, .browse-btns a.btn:hover {
  background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ce0100), color-stop(1, #fe1a00) );
  background:-moz-linear-gradient( center top, #ce0100 5%, #fe1a00 100% );
  filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ce0100', endColorstr='#fe1a00');
  background-color:#ce0100;
}.cat-buttons a.btn:active, .browse-btns a.btn:active {
  position:relative;
  top:1px;
}
.cat-buttons h4 {font-size:14px; margin:4px;}
.cat-buttons img {border-radius: 10px;}
#sidebar .cat-buttons a {
  margin-bottom:5px;
  padding:5px;
}
#sidebar .cat-buttons {
  text-align: center;
  padding-bottom:0;
}
#sidebar .cat-buttons .col-xs-4 {
  padding:5px;
}

#sidebar .links .btn { 
  background-color:#333;
  margin-bottom:5px;
}

/* Carousel fade effect */
.carousel.fader
{
    opacity: 1;
}

.carousel.fader .item
{
    -moz-transition: opacity ease-in-out .7s;
    -o-transition: opacity ease-in-out .7s;
    -webkit-transition: opacity ease-in-out .7s;
    transition: opacity ease-in-out .7s;
    left: 0 !important;
    opacity: 0;
    top:0;
    position:absolute;
    width: 100%;
    display:block !important;
    z-index:1;
}

.carousel.fader .item:first-child{
    top:auto;
    position:relative;
}

.carousel.fader .item.active
{
    opacity: 1;
    -moz-transition: opacity ease-in-out .7s;
    -o-transition: opacity ease-in-out .7s;
    -webkit-transition: opacity ease-in-out .7s;
    transition: opacity ease-in-out .7s;
    z-index:2;
}

.carousel.fader .carousel-control
{
  z-index: 2;
}

/* Modern Business Theme Styles */
body {
    padding-top: 50px; /* Required padding for .navbar-fixed-top. Remove if using .navbar-static-top. Change if height of navigation changes. */
}

.img-portfolio {
    margin-bottom: 30px;
}

.img-hover:hover {
    opacity: 0.8;
}

/* Home Page Carousel */
header.carousel {
    height: 50%;
}

header.carousel .item,
header.carousel .item.active,
header.carousel .carousel-inner {
    height: 100%;
}

header.carousel .fill {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
}

/* 404 Page Styles */
.error-404 {
    font-size: 100px;
}

/* Pricing Page Styles */
.price {
    display: block;
    font-size: 50px;
    line-height: 50px;
}

.price sup {
    top: -20px;
    left: 2px;
    font-size: 20px;
}

.period {
    display: block;
    font-style: italic;
}

/* Footer Styles */
footer {
    margin: 50px 0;
}

/* Responsive Styles */
@media(max-width:991px) {
    .customer-img,
    .img-related {
        margin-bottom: 30px;
    }
}

@media(max-width:767px) {
    .img-portfolio {
        margin-bottom: 15px;
    }

    header.carousel .carousel-caption {
        display: none;
    }
}

/* Custom carousel positioning */
#myCarousel .fill {
    height: 200px;
}

.carousel-caption {
    bottom: 40%;
    padding-bottom: 0;
}

.carousel-caption img {
    max-width: 100%;
    height: auto;
}

.carousel-caption.carousel-center {
    left: 50%;
    right: auto;
    text-align: center;
    transform: translateX(-50%);
}

/* Section styling */
.section, .section-colored {
    padding: 15px;
}

.section-colored {
    background-color: #e1e1e1;
    color: #333;
}

/* Five column layout for recent apps */
@media (min-width: 768px){
    .fivecolumns .col-md-2, .fivecolumns .col-sm-2, .fivecolumns .col-lg-2  {
        width: 20%;
        *width: 20%;
    }
}
@media (min-width: 1200px) {
    .fivecolumns .col-md-2, .fivecolumns .col-sm-2, .fivecolumns .col-lg-2 {
        width: 20%;
        *width: 20%;
    }
}
@media (min-width: 768px) and (max-width: 979px) {
    .fivecolumns .col-md-2, .fivecolumns .col-sm-2, .fivecolumns .col-lg-2 {
        width: 20%;
        *width: 20%;
    }
}
/* Dropdown menu dark theme overrides */
.navbar-inverse .dropdown-menu {
    background-color: #222;
    border-color: #080808;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.navbar-inverse .dropdown-menu > li > a {
    color: #9d9d9d;
}

.navbar-inverse .dropdown-menu > li > a:hover,
.navbar-inverse .dropdown-menu > li > a:focus {
    color: #fff;
    background-color: #333;
    text-decoration: none;
}

.navbar-inverse .dropdown-menu > .active > a,
.navbar-inverse .dropdown-menu > .active > a:hover,
.navbar-inverse .dropdown-menu > .active > a:focus {
    color: #fff;
    background-color: #080808;
}

/* Soften the dropdown shadow */
.dropdown-menu {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Dark theme for links page - with higher specificity to override Bootstrap */
body a.list-group-item,
body button.list-group-item {
    background-color: #32383e;
    border-color: #1c1e22;
    color: #c8c8c8 !important;
}

body a.list-group-item:hover, 
body a.list-group-item:focus,
body button.list-group-item:hover,
body button.list-group-item:focus {
    background-color: #3e444c;
    color: #fff !important;
    text-decoration: none;
}

body a.list-group-item .list-group-item-heading,
body button.list-group-item .list-group-item-heading {
    color: #fff !important;
}

body a.list-group-item .list-group-item-text,
body button.list-group-item .list-group-item-text {
    color: #aaa !important;
}

body a.list-group-item:hover .list-group-item-text,
body button.list-group-item:hover .list-group-item-text {
    color: #ccc !important;
}

/* Fix breadcrumb colors for dark theme */
.breadcrumb {
    background-color: #32383e;
}

.breadcrumb > .active {
    color: #aaa;
}

.breadcrumb > li + li:before {
    color: #777;
}
/* Fix for Recently Updated Apps text color */
.section-colored {
    background-color: #32383e;
    color: #c8c8c8;
}

.section-colored h2, 
.section-colored p {
    color: #c8c8c8;
}

.recent-home-item a {
    color: #c8c8c8;
}

.recent-home-item a:hover {
    color: #fff;
    text-decoration: none;
}

.recent-home-item h5 {
    margin-top: 8px;
    font-size: 13px;
}
/* Fix sidebar category icons and links */

/* Make category icons smaller and centered */
#sidebar .cat-buttons img {
    max-width: 60px;
    height: auto;
    display: block;
    margin: 0 auto 5px;
    border-radius: 10px;
}

/* Adjust button padding and height */
#sidebar .cat-buttons .btn {
    padding: 10px 5px;
    height: auto;
    margin-bottom: 10px;
}

/* Make category headings smaller and centered */
#sidebar .cat-buttons h4 {
    font-size: 12px;
    margin: 0;
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Update hover effect for sidebar links */
#sidebar .links .btn {
    white-space: normal;
    height: auto;
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 5px;
    word-wrap: break-word;
    text-align: center;
    color: #c8c8c8;
    background-color: #32383e;
    border-color: #1c1e22;
    transition: background-color 0.2s ease;
}

/* Update hover effect for sidebar links */
#sidebar .links .btn:hover,
#sidebar .links .btn:focus {
    background-color: #3e444c;
    color: #c8c8c8; /* Keep text color the same */
    text-decoration: none;
}

/* Add some spacing between link columns */
#sidebar .links .col-xs-6 {
    padding-left: 5px;
    padding-right: 5px;
}
/* Custom 404 page styling */
.alert-dark {
    background-color: #32383e;
    border-color: #1c1e22;
    color: #c8c8c8;
}

.alert-dark h1 {
    color: #fff;
    margin-bottom: 20px;
}

.alert-dark .alert-link {
    color: #fff;
    text-decoration: underline;
}

.alert-dark .alert-link:hover {
    color: #fff;
    text-decoration: none;
}

/* Style for list links on 404 page */
.list-unstyled li {
    margin-bottom: 8px;
}

.list-unstyled a {
    color: #c8c8c8;
}

.list-unstyled a:hover {
    color: #fff;
}

/* App URL checking styles */
.checking-url {
    cursor: wait !important;
    transition: opacity 0.3s ease;
}

/* Simple app message styling */
.app-message {
    font-style: italic;
    margin: 5px 0 !important;
}

/* Loading spinner animation */
.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(359deg);
    }
}

/* Make app rows show they're clickable */
tr.app-listing {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

tr.app-listing:hover {
    background-color: rgba(255,255,255,0.05) !important;
}
