/* commun */

body { font-family:Tahoma; font-size:12px; }

/* manage */

a{ text-decoration: none;color: #000; }
a:hover { text-decoration: underline; }
td.highlight { background-color: whitesmoke !important; }
h1 { clear: left; font-size: 2.8rem; display: inline-block; margin: 10px 30px; text-transform: uppercase; }
#status { position: absolute; display: none; padding: 0 5px 10px; margin: 0 auto; text-align: center; font-size: 1.5rem; border: 1px solid; border-radius: 2px 2px 20px 20px; background-color: #ddd; top: 0; width: 20%; left: 40%;}
button, .form-remove { display: inline-block; }
button.duplicate { border: 0 none; display: inline-block; background:transparent url('/images/duplicate.png') no-repeat center center; width: 20px; height: 20px; }
button.btremove { border: 0 none;background:transparent url('/images/details_close.png') no-repeat center center; width: 20px; height: 20px; }
button.btadd { 	border: 0 none;background:transparent url('/images/details_open.png') no-repeat center center; width: 20px; height: 20px; cursor: pointer; }
table thead th { text-transform: uppercase; }
.loading { content:"loading"; position: absolute; }

.main-content {
	padding: 0 15px;
}

/* home */
.main-content-home {
	width: 90%;
	margin: 2% auto;	
}

/* tableau liste groupe */
.table-lst-groupe { margin: 20px 0; font-size: 1.5rem; width: 100%; }
.table-lst-groupe tbody th,
.table-lst-groupe tbody td,
.table-lst-groupe tfoot td,
.table-lst-groupe thead th { padding: 5px; border:1px solid; }

.table_mngst tbody tr.focus td{
	background-color: grey;
}

.table_mng tbody tr:hover td,
.table_mngst tbody tr:hover td{
    background-color: gray;
    color: black;
    cursor: cell;
}

/* RSS */
/* .rss-content {

} */
.rss-flux {
	border: 1px solid #000;
	font-size: 12px;
	border: 10px solid transparent;
	display: inline-block;
}

.rss-flux h1 {
	background: #000;
	display: block;
	width: calc( 100% + 30px);
	margin: 0 -15px;
	color: white;
	padding: 5px;
	cursor: pointer;
}
.rss-flux h1:hover > .link{
  display: block;
}
.rss-flux h1 a {
	color: white;
}
.rss-flux h1 .loading,
.rss-flux h1 .link{
	padding: 5px;
	right: 0;
	top: 0;
	display: none;
}
.rss-flux h1 .link {
  right: 40px;
  position: absolute;  
}
.rss-flux h1 .link:hover {
  text-decoration: none;
}
.rss-flux h1 .loading .fa-refresh:before{
	color: #FFF;
}
.rss-flux content {
	max-height: 300px; 
	overflow-x: hidden;
	display: block;
	position: relative;
}
.rss-flux h2{
	border-top: 1px solid #000;
	padding-top: 5px;
	font-size: 2rem;
}

.rss-flux p {
	font-size: 1.5rem;
	line-height: 2rem;
	margin: 0;
}

.rss-flux p,
.rss-flux h2 a,
.rss-flux h2 small {
	clear: both;
	display: block;
}
fieldset {
	border: 1px solid #000;
	padding: 10px;
	margin: 10px;
}
fieldset legend {
    width: auto;
    padding: 0 15px;
    font-size: 1.5rem;
    text-transform: uppercase;
    margin: 0;
    border: 1px solid #000;
}

/* LOADER */

#overlay {
  background: #ffffff;
  color: #666666;
  position: fixed;
  height: 100%;
  width: 100%;
  z-index: 5000;
  opacity: .8;
  top: 0;
  left: 0;
  float: left;
  text-align: center;
  padding-top: 15%;
}
.loader {
  border: 16px solid #FFF; /* Light grey */
  border-top: 16px solid black; /* Blue */
  border-radius: 50%;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  animation: spin 2s linear infinite;
}

/* VPN */
.main-content-vpn .top{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  border-bottom:1px solid var(--line);
  padding-bottom:14px;
  margin-bottom:24px;
}
.main-content-vpn h1{
  font-size:15px;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-weight:600;
  margin:0;
  color:var(--ink);
}
.main-content-vpn .btn-link{
  background:var(--panel2);
  border:1px solid var(--line);
  color:var(--ink-dim);
  font-family:var(--mono);
  font-size:11px;
  padding:5px 12px;
  border-radius:4px;
  cursor:pointer;
  white-space:nowrap;
  align-self:center;
}
.main-content-vpn .btn-link:hover{border-color:var(--accent);color:var(--accent);}
.main-content-vpn .btn-link.copied{border-color:var(--accent);color:var(--accent);}

.vpn-alert { color:red;font-weight:bold; }
.vpn-info { color:#1f4fff;font-weight:bold; }
.vpn-ok { color:#000;font-weight:bold; }

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
} 

.sk-cube-grid {
  width: 80px;
  height: 80px;
  margin: 80px auto;
}

.sk-cube-grid .sk-cube {
  width: 33%;
  height: 33%;
  background-color: black;
  float: left;
  -webkit-animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
          animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out; 
}
.sk-cube-grid .sk-cube1 {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s; }
.sk-cube-grid .sk-cube2 {
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s; }
.sk-cube-grid .sk-cube3 {
  -webkit-animation-delay: 0.4s;
          animation-delay: 0.4s; }
.sk-cube-grid .sk-cube4 {
  -webkit-animation-delay: 0.1s;
          animation-delay: 0.1s; }
.sk-cube-grid .sk-cube5 {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s; }
.sk-cube-grid .sk-cube6 {
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s; }
.sk-cube-grid .sk-cube7 {
  -webkit-animation-delay: 0s;
          animation-delay: 0s; }
.sk-cube-grid .sk-cube8 {
  -webkit-animation-delay: 0.1s;
          animation-delay: 0.1s; }
.sk-cube-grid .sk-cube9 {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s; }

@-webkit-keyframes sk-cubeGridScaleDelay {
  0%, 70%, 100% {
    -webkit-transform: scale3D(1, 1, 1);
            transform: scale3D(1, 1, 1);
  } 35% {
    -webkit-transform: scale3D(0, 0, 1);
            transform: scale3D(0, 0, 1); 
  }
}

@keyframes sk-cubeGridScaleDelay {
  0%, 70%, 100% {
    -webkit-transform: scale3D(1, 1, 1);
            transform: scale3D(1, 1, 1);
  } 35% {
    -webkit-transform: scale3D(0, 0, 1);
            transform: scale3D(0, 0, 1);
  } 
}

/* LOGIN */
.login-body{
    background:#1e2a38;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:100vh;
    margin:0;
    font-family:sans-serif
}
.login-body .box{
  background:#fff;
  border-radius:8px;
  padding:2.2rem 2.5rem;
  width:100%;
  max-width: 380px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, .4)
}
.login-body .box h1 {
  font-size: 2rem;
  margin: 0 0 1.5rem;
  text-align: center;
  color: #1e2a38
}

.login-body .box input {
  display: block;
  width: 100%;
  padding: .6rem .85rem;
  margin-bottom: .9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1.5rem;
  box-sizing: border-box
}

.login-body .box input:focus {
  outline: none;
  border-color: #2d6abf;
  box-shadow: 0 0 0 2px rgba(45, 106, 191, .2)
}

.login-body .box button {
  width: 100%;
  padding: .7rem;
  background: #1e2a38;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.5rem;
  cursor: pointer
}

.login-body .box button:hover {
  background: #2d3f56
}

.login-body .alert {
  padding: .6rem 1rem;
  border-radius: 4px;
  margin-bottom: .9rem;
  font-size: .9rem
}

.login-body .alert-danger {
  background: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7
}

.login-body .alert-warning {
  background: #fff3cd;
  color: #664d03;
  border: 1px solid #ffecb5
}


/* DARK MODE */

@media (prefers-color-scheme:dark){
  body { color: #8c7f7f;background:#212121; }
  a{ text-decoration: none;color: #8c7f7f; }
  a:hover { text-decoration: underline; }
  tr,td.highlight { background-color: #2b2b2b !important; }
  .table_mngst tbody tr.focus td{ background-color: #2b2b2b; }
  h1 { clear: left; font-size: 2.8rem; display: inline-block; margin: 10px 30px; text-transform: uppercase; }
  #status { position: absolute; display: none; padding: 0 5px 10px; margin: 0 auto; text-align: center; font-size: 1.5rem; border: 1px solid; border-radius: 2px 2px 20px 20px; background-color: #ddd; top: 0; width: 20%; left: 40%;}
  table thead th { text-transform: uppercase; }
  fieldset { border: 1px solid #FFF; }
  fieldset legend { color:#FFF; border: 1px solid #FFF; }
  .vpn-alert { color:red;font-weight:bold; }
  .vpn-info { color:#1f4fff;font-weight:bold; }
  .vpn-ok { color:#FFF;font-weight:bold; }
  table.dataTable span.dtcc button.dtcc-button span.dtcc-button-icon { color: #FFF; }
}