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

: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;
}

.legacy-latest-webcams .entry-title,
.legacy-latest-webcams .latest-title{color:#fff!important}

.legacy-latest-webcams .legacy-latest-grid{gap:18px!important}

.legacy-latest-webcams .latest-item{
  background:#090c10!important;
  border-color:#0f141b!important;
  box-shadow:none!important;
}

.legacy-fake-controls{
  background:#090c10!important;
  border-color:#0f141b!important;
  border-radius:10px!important;
}

.legacy-fake-controls button{
  background:#0d1218!important;
}
.legacy-fake-controls button:hover{
  background:#131a22!important;
}

.legacy-fake-controls .bar{
  background:#0f141b!important;  
}
.legacy-fake-controls .bar>div{
  background:#9ca3af!important;  
}

.legacy-fake-controls .time{color:#e5e7eb!important}
.legacy-fake-controls svg{
  fill:#e5e7eb!important;
  stroke:#e5e7eb!important;
}

.legacy-meta li a{
  color:#fff !important;
  text-decoration:none !important;
}
.legacy-meta li a:hover,
.legacy-meta li a:focus{
  color:#e5e7eb !important;
  text-decoration:underline;
}

/* ===== Black compact info card ===== */
.pc-info-card{background:#0a0a0a;border:1px solid #1a1a1a;border-radius:16px;padding:16px;margin:12px 0;color:#e5e7eb}
.pc-info-card h3{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-weight:600}
.pc-compact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.pc-subttl{font-size:12px;color:#9ca3af;margin-bottom:6px}
.pc-chips,.pc-meta{display:flex;flex-wrap:wrap;gap:8px}
.pc-chip{display:inline-block;background:#0f0f0f;border:1px solid #262626;border-radius:9999px;padding:6px 10px;font-size:13px;line-height:1;white-space:nowrap}
.pc-more-wrap{margin-left:8px}
.pc-more-btn{font-size:13px;color:#93c5fd;background:transparent;border:none;cursor:pointer}
.pc-flag{margin-right:6px}
@media (max-width:640px){.pc-compact-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}

/* ===== Embed mobile tweak (keep 16/9 on desktop, taller on small screens) ===== */
@media (max-width: 768px){
  .embed-wrapper{ aspect-ratio: 14.8 / 16 !important; }
}
	
/* Chip */
.pc-compact-grid div .pc-chip{
	color:#ffffff;
	text-decoration:none;
}

/* Chip */
.pc-section .pc-chips .pc-chip{
	color:#ffffff;
	text-decoration:none;
	
}

/* Subttl */
.pc-info-card .pc-section .pc-subttl{
	margin-top:12px;
}
	
.cam-container{ height: 250px; }      
	
.cam-title-txt,
.cam-title-txt a {
  color:#fff !important;
  text-decoration:none !important;
  border:0 !important;
}

	