﻿/* ============================================
   ZUM COME - Complete Stylesheet
   Private Video/Voice Chat with Monitoring
   ============================================ */

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0d0d0d;
    color: #fff;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Touch-friendly improvements */
a, button {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    touch-action: manipulation;
}

/* Prevent text selection on buttons/links */
button, .btn {
    user-select: none;
    -webkit-user-select: none;
}

/* Header */
header {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: #fff;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-size: 2.2rem;
    letter-spacing: 3px;
    font-weight: 700;
    background: linear-gradient(90deg, #fff 0%, #ccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

/* Main Content Area */
.main {
    padding: 48px 20px;
    min-height: calc(100vh - 200px);
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 100%);
}

/* Card Component */
.card {
    background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
    border-radius: 16px;
    padding: 40px;
    max-width: 700px;
    margin: 48px auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    border: 1px solid #333;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 12px 48px rgba(0,0,0,0.5);
    transform: translateY(-4px);
}

.card h2 {
    margin-top: 0;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    border-bottom: 2px solid #444;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.card p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ddd;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: #111;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #888;
    font-size: 0.85rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 5px;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    color: #fff;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.option-btn {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #fff;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s;
    outline: none;
}

.option-btn:hover {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #28a745;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #ff6b7a;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: #17a2b8;
    color: #17a2b8;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #ffc107;
}

/* Auth Pages */
.auth-card {
    max-width: 500px;
}

.auth-links {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #444;
    text-align: center;
}

.auth-links a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: #999;
    text-align: center;
    padding: 24px 0;
    font-size: 0.95rem;
    letter-spacing: 1px;
    border-top: 1px solid #222;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
    margin-top: 60px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: #888;
}

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 20px;
    }

    header h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    nav {
        width: 100%;
        justify-content: center;
    }

    nav a {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .main {
        padding: 30px 15px;
    }

    .card {
        padding: 25px;
        margin: 30px auto;
        max-width: 95%;
    }

    .card h2 {
        font-size: 1.6rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .option-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }

    nav a {
        font-size: 0.85rem;
        padding: 6px 10px;
    }

    .card {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .card h2 {
        font-size: 1.4rem;
    }

    .btn, .option-btn {
        width: 100%;
        margin: 8px 0;
    }
    
    footer {
        font-size: 0.85rem;
        padding: 18px 10px;
    }
}

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

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 35px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
}

/* Mobile Styles (Tablets and below) */
@media screen and (max-width: 768px) {
    /* Show hamburger menu */
    .menu-toggle {
        display: flex;
    }
    
    /* Header adjustments */
    header {
        padding: 16px 20px;
        position: relative;
    }
    
    header h1 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    /* Mobile Navigation */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
        flex-direction: column;
        padding: 80px 20px 20px 20px;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0,0,0,0.5);
        overflow-y: auto;
        z-index: 999;
    }
    
    nav.active {
        right: 0;
    }
    
    nav a {
        width: 100%;
        text-align: left;
        padding: 16px 20px;
        border-bottom: 1px solid #333;
        border-radius: 0;
        font-size: 1.1rem;
    }
    
    nav a:hover,
    nav a:active {
        background: rgba(255, 255, 255, 0.15);
        border-color: transparent;
        transform: translateX(5px);
    }
    
    /* Overlay when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 998;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    /* Main content adjustments */
    .main {
        padding: 24px 15px;
        min-height: calc(100vh - 150px);
    }
    
    .card {
        padding: 24px 20px;
        margin: 24px auto;
        border-radius: 12px;
    }
    
    .card h2 {
        font-size: 1.5rem;
    }
    
    .card h3 {
        font-size: 1.3rem;
    }
    
    .card p {
        font-size: 1rem;
    }
    
    /* Form adjustments */
    .auth-card {
        padding: 24px 20px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    input, select, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
    }
    
    /* Button adjustments */
    .btn {
        padding: 14px 24px;
        font-size: 1rem;
        width: 100%;
        margin: 8px 0;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 320px;
    }
    
    /* Grid adjustments */
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .user-list,
    .children-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .monitoring-streams {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Video/Stream boxes */
    .stream-box {
        max-width: 100%;
        padding: 15px;
    }
    
    video, img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
    }
    
    /* Chat interface */
    .chat-container {
        max-width: 100%;
        padding: 15px;
    }
    
    .user-list-chat {
        max-height: 300px;
    }
    
    /* Table responsive */
    table {
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table th,
    table td {
        padding: 8px 6px;
        white-space: nowrap;
    }
    
    /* Alert boxes */
    .alert {
        padding: 12px 16px;
        font-size: 0.95rem;
        margin: 15px 0;
    }
    
    /* Footer */
    footer {
        padding: 20px 15px;
        font-size: 0.9rem;
    }
    
    /* Hero section (homepage) */
    .hero {
        padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Feature cards */
    .feature-card {
        padding: 24px 20px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    /* User/Child cards */
    .user-card,
    .child-card {
        padding: 16px;
    }
    
    /* Stats/Admin panel */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Link code section */
    .link-code {
        font-size: 0.95rem;
        padding: 12px;
        word-break: break-all;
    }
    
    /* Payment cards */
    .pricing-card {
        padding: 20px;
    }
    
    .price {
        font-size: 2.5rem;
    }
}

/* Extra Small Devices (Phones in portrait) */
@media screen and (max-width: 480px) {
    header h1 {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    
    nav {
        width: 85%;
        max-width: 280px;
    }
    
    .card {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .card h2 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    /* Form inputs */
    .form-group label {
        font-size: 0.95rem;
    }
    
    input, select, textarea {
        padding: 12px 14px;
    }
    
    /* Feature cards */
    .feature-card {
        padding: 20px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    /* User cards */
    .user-card,
    .child-card {
        padding: 16px;
    }
    
    /* Tables scroll horizontally */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 500px;
    }
}

/* Landscape phones */
@media screen and (max-width: 768px) and (orientation: landscape) {
    header {
        padding: 12px 20px;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    nav {
        height: 100vh;
        padding-top: 60px;
    }
    
    .main {
        padding: 20px 15px;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    .menu-toggle,
    nav,
    .btn {
        display: none;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
