/* =================================== */
/* Parental Monitor - Professional UI */
/* =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: #f4f6f9;
    color: #333;
    min-height: 100vh;
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 30px;
    background: #f4f6f9;
    margin-left: 280px;
}

.content-header {
    margin-bottom: 30px;
}

.content-header h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.content-header p {
    color: #7f8c8d;
    font-size: 16px;
}

/* Latest Screenshots Preview */
.preview-container {
    margin-top: 50px;
}

.preview-container h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.preview-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.preview-card:hover {
    transform: translateY(-5px);
}

.preview-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.preview-time {
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: #555;
    background: #f8f9fa;
}

.view-all-link {
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
}

.view-all-link:hover {
    text-decoration: underline;
}

.remote-control {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
    margin: 30px 0;
}

.btn-toggle {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-on {
    background: #e74c3c;
    color: white;
}

.btn-off {
    background: #27ae60;
    color: white;
}

.btn-toggle:hover {
    transform: scale(1.05);
}

.remote-control {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    margin: 40px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.remote-control h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.btn-toggle {
    padding: 18px 40px;
    font-size: 20px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 250px;
}

.btn-on {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
}

.btn-off {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.4);
}

.btn-toggle:hover {
    transform: translateY(-5px);
}

.remote-control p {
    font-size: 18px;
    color: #2c3e50;
    margin-top: 20px;
}

.btn-disabled {
    background: #95a5a6 !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 50px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    user-select: none;
    transition: background 0.3s;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 70%;
    object-fit: contain;
}

.caption {
    color: white;
    font-size: 18px;
    margin-top: 20px;
    text-align: center;
    max-width: 90%;
}

/* Responsive */
@media (max-width: 992px) {
    .wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
    }
    .sidebar-nav ul {
        display: flex;
        overflow-x: auto;
        padding: 10px 20px;
    }
    .sidebar-nav li {
        margin: 0 10px;
    }
    .sidebar-nav a {
        white-space: nowrap;
    }
    .main-content {
        padding: 20px;
    }
}
