/**
 * OneSignal Signup Form - Main Stylesheet
 */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.main-header .logo {
    max-height: 2.8rem;
    width: auto;
    object-fit: contain;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-logout {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.3);
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: #333;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

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

.btn-secondary:hover {
    background: #5a6268;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Landing Page */
.landing-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.landing-content {
    text-align: center;
}

.landing-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.landing-content .lead {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.landing-actions {
    margin-top: 2rem;
}

/* Dashboard */
.dashboard-container {
    padding: 1rem 0;
    min-height: calc(100vh - 200px);
}

.dashboard-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ddd;
}

.nav-item {
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-item:hover {
    color: #667eea;
}

.nav-item.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.dashboard-content {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-content h2 {
    margin-bottom: 0.75rem;
    color: #333;
}

/* Search Form */
.search-form {
    margin-bottom: 0.75rem;
}

.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

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

.btn-search {
    background: #667eea;
    color: white;
    padding: 0.375rem 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-search:hover {
    background: #5568d3;
}

.btn-clear {
    background: #6c757d;
    color: white;
    padding: 0.375rem 0.75rem;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.875rem;
}

.btn-clear:hover {
    background: #5a6268;
}

/* Stats */
.stats-box {
    background: #f8f9fa;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.stats-box p {
    margin: 0;
    color: #666;
}

.stats-box strong {
    color: #333;
}

.items-per-page-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.items-per-page-selector label {
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.items-per-page-selector select {
    padding: 0.25rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.items-per-page-selector select:focus {
    outline: none;
    border-color: #667eea;
}

/* Table */
.table-container {
    overflow-x: auto;
    margin-bottom: 0.75rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.875rem;
}

.data-table thead {
    background: #f8f9fa;
}

.data-table th {
    padding: 0.375rem 0.5rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
    font-size: 0.75rem;
}

.data-table td {
    padding: 0.375rem 0.5rem;
    border-bottom: 1px solid #eee;
    font-size: 0.75rem;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.text-center {
    text-align: center;
    color: #999;
    padding: 2rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.btn-pagination {
    padding: 0.375rem 0.75rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
    font-size: 0.875rem;
}

.btn-pagination:hover {
    background: #5568d3;
}

.page-info {
    color: #666;
    font-size: 0.875rem;
}

/* Push Message Section */
.push-section {
    padding: 1.5rem 0;
}

.push-section .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .push-section .grid {
        grid-template-columns: 1fr 1fr;
    }
}

.coming-soon {
    font-size: 1.2rem;
    color: #999;
    margin-top: 1rem;
}

/* 404 Page */
.error-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.error-content {
    text-align: center;
}

.error-content h1 {
    font-size: 6rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.error-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.error-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Footer */
.main-footer {
    background: #333;
    color: white;
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
}

.main-footer p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dashboard-nav {
        flex-direction: column;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .data-table {
        font-size: 0.9rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
    
    .error-content h1 {
        font-size: 4rem;
    }
    
    .error-actions {
        flex-direction: column;
    }
}

