* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

header h1 {
    margin: 0;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

header p {
    text-align: center;
    opacity: 0.8;
    margin: 0;
}

main {
    min-height: calc(100vh - 150px);
}

section {
    background: white;
    margin: 1rem 0;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.auth-container {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

.auth-form {
    flex: 1;
    min-width: 300px;
    background: #ecf0f1;
    padding: 1.5rem;
    border-radius: 8px;
}

.auth-form h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.auth-form input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.auth-form button {
    width: 100%;
    padding: 0.8rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.auth-form button:hover {
    background: #2980b9;
}

.user-info {
    background: #e8f4fc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.user-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.user-info p {
    margin-bottom: 0.3rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.action-buttons button {
    padding: 0.8rem 1.5rem;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.action-buttons button:hover {
    background: #219a52;
}

#logoutBtn {
    background: #e74c3c;
}

#logoutBtn:hover {
    background: #c0392b;
}

.websites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.website-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.website-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.website-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.website-card p {
    margin-bottom: 1rem;
    color: #666;
}

.visit-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.visit-btn:hover {
    background: #2980b9;
}

.blocked-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    border: 1px solid #f5c6cb;
}

.blocked-message p {
    margin: 0.5rem 0;
    font-weight: bold;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.faq {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}
    
.faq h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}
    
.center-button {
    text-align: center;
    margin: 2rem 0;
}
    
/* Responsive design */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }
        
    .auth-form {
        min-width: 100%;
    }
        
    .action-buttons {
        flex-direction: column;
    }
        
    .websites-grid {
        grid-template-columns: 1fr;
    }
        
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
    }
        
    nav {
        margin-top: 0.5rem;
    }
        
    nav a {
        margin: 0 0.5rem;
    }
}