/* WOCOO Analytics - Dark Theme CSS */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #e5e5e5;
    line-height: 1.6;
}

/* Landing Page Styles */
.landing-page {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 100vh;
}

/* Top Navigation */
.top-nav {
    background: #000;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    position: relative;
    z-index: 1000;
}

.logo {
    height: 40px;
    filter: brightness(0) invert(1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sign-in-btn, .logout-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sign-in-btn:hover, .logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.user-info {
    color: #ccc;
    font-size: 14px;
}

/* Hero Section */
.hero {
    padding: 80px 30px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    border-color: #667eea;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #667eea;
}

.feature p {
    color: #ccc;
    font-size: 0.95rem;
}

/* Dashboard Layout */
.dashboard-layout {
    background: #0a0a0a;
}

.main-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: #111;
    border-right: 1px solid #333;
    padding: 20px 0;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-left-color: #667eea;
}

.sidebar-menu a.active {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    border-left-color: #667eea;
}

.sidebar-menu a span {
    margin-right: 12px;
    font-size: 1.1rem;
}

/* Main Content */
.content {
    flex: 1;
    padding: 30px;
    background: #0a0a0a;
    overflow-y: auto;
}

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

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 300;
    color: #e5e5e5;
    margin-bottom: 10px;
}

.page-header p {
    color: #999;
    font-size: 1.1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #111;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #333;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: #667eea;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.stat-label {
    color: #ccc;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 0.85rem;
    font-weight: 600;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Cards */
.card {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
}

.card h3 {
    color: #e5e5e5;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Activity List */
.activity-list {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #222;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.1rem;
}

.activity-icon.open {
    background: rgba(16, 185, 129, 0.2);
}

.activity-icon.click {
    background: rgba(102, 126, 234, 0.2);
}

.activity-icon.button_click {
    background: rgba(245, 158, 11, 0.2);
}

.activity-details {
    flex: 1;
}

.activity-details strong {
    color: #e5e5e5;
    display: block;
    font-size: 0.95rem;
}

.activity-details small {
    color: #999;
    font-size: 0.85rem;
}

.activity-time {
    color: #666;
    font-size: 0.8rem;
}

/* Login Modal */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.login-modal.show {
    display: flex;
}

.login-form {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #e5e5e5;
}

.login-form h2 {
    color: #e5e5e5;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 300;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: #222;
    border: 1px solid #444;
    border-radius: 6px;
    color: #e5e5e5;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
}

/* Form Elements */
.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

/* Tables */
.table-container {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #222;
}

th {
    background: #1a1a1a;
    color: #ccc;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    color: #e5e5e5;
}

tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* Form Styles */
.form-section {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

.form-section h2 {
    color: #e5e5e5;
    margin-bottom: 20px;
    font-weight: 300;
}

.form-section .form-group {
    margin-bottom: 20px;
}

.form-section label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-section input,
.form-section select,
.form-section textarea {
    width: 100%;
    padding: 12px 16px;
    background: #222;
    border: 1px solid #444;
    border-radius: 6px;
    color: #e5e5e5;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-section input:focus,
.form-section select:focus,
.form-section textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Language Groups */
.language-group {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    position: relative;
    transition: border-color 0.3s ease;
}

.language-group:hover {
    border-color: #667eea;
}

.language-group h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-weight: 600;
}

.remove-lang {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

/* Status Messages */
.error {
    background: linear-gradient(135deg, #fca5a5 0%, #f87171 100%);
    color: #7f1d1d;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 4px solid #dc2626;
}

.success {
    background: linear-gradient(135deg, #86efac 0%, #22c55e 100%);
    color: #14532d;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 4px solid #16a34a;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
}

.badge.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Search Box */
.search-box {
    width: 100%;
    padding: 12px 16px;
    background: #222;
    border: 1px solid #444;
    border-radius: 6px;
    color: #e5e5e5;
    font-size: 14px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: #667eea;
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .content {
        order: 1;
    }
    
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        padding: 0 20px;
    }
    
    .sidebar-menu li {
        min-width: 120px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .content {
        padding: 20px;
    }
    
    .top-nav {
        padding: 15px;
    }
    
    .hero {
        padding: 40px 20px;
    }
}