/*
Theme Name: Surveillance Grid
Description: Plugincams.com grid theme.
Author: PluginCams
Version: 1.0
*/

:root {
    --bg-dark: #0d1117;
    --bg-darker: #090c10;
    --accent-color: #58a6ff;
    --text-light: #c9d1d9;
    --text-lighter: #ffffff;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.dashboard {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}


.header {
    padding: 0 1rem;
    background-color: var(--bg-darker);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.title {
    font-weight: 500;
    color: var(--text-lighter);
    font-size: 1.1rem;
}

.title span {
    color: var(--accent-color);
    font-weight: 600;
}

.controls {
    display: flex;
    gap: 0.8rem;
}

.btn {
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-light);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #388bfd;
}

.cam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    grid-auto-rows: minmax(250px, 1fr);
    gap: 1px;
    padding: 1px;
    background-color: rgba(0, 0, 0, 0.2);
}

.cam-container {
    position: relative;
    background-color: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transition: all 0.2s ease;
}

.cam-container:hover {
    z-index: 10;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.cam-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cam-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timestamp {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 0.7rem;
    font-family: monospace;
}

.status-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #3fb950;
    box-shadow: 0 0 4px #3fb950;
}

.status-offline {
    background-color: #f85149;
    box-shadow: 0 0 4px #f85149;
}

.cam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
}

@media (min-width: 640px) {
  .cam-grid {
    grid-template-columns: repeat(3, 1fr); 
  }
}

@media (min-width: 1024px) {
  .cam-grid {
    grid-template-columns: repeat(4, 1fr); 
  }
}

@media (min-width: 1280px) {
  .cam-grid {
    grid-template-columns: repeat(6, 1fr); 
  }
}


html, body {
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

.cam-grid,
.dashboard,
.container,
main,
section {
  height: auto;
  overflow: visible;
  max-height: none;
}

.cam-grid::-webkit-scrollbar {
  display: none;
}

.header {
  height: 50px;
  padding: 0 1rem;
  background-color: var(--bg-darker);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.title a {
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.title a span {
  color: var(--accent-color);
}
	
	
.dashboard .mx-auto .mx-auto{
	margin-right:35px;
	margin-left:35px;
}

.dashboard .border-gray-700{
	border-width:0px;
}

.dashboard section .text-white{
	margin-left:14px;
}


@media (max-width: 640px) {
  .cam-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.dropdown-menu {
  display: ;
  position: absolute;
  top: 110%;
  right: 0;
  background-color: #1a1a1a;
  border: 1px solid #2c2c2c;
  border-radius: 6px;
  padding: 0.5rem;
  min-width: 160px;
  z-index: 999;
  list-style: none; 
  margin: 0;
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
}

.dropdown-menu a {
  display: block;
  color: #f1f1f1; 
  text-decoration: none; 
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.dropdown-menu a:hover {
  background-color: #2e2e2e;
  color: #fff;
}

#layoutMenu {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: #111 !important;
}
#layoutMenu * {
  margin: 10 !important;
  padding: 10 !important;
  list-style: none !important;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.footer-nav li {
  list-style: none;
}

.footer-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #fff;
}
.footer-nav {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin: 1rem 0 0 0;
  padding: 0;
}

.footer-nav li {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-menu a{
	margin-right:5px;
	margin-left:5px;
}

.dashboard .mx-auto .cam-info-wrapper{
	border-width:0px;
}
