/* Unified CSS Styles */ /* Base styles */ body { font-family: Arial, sans-serif; max-width: 1200px; margin: 0 auto; padding: 20px; background-color: #f9f9f9; color: #333; } h1 { color: #333; text-align: center; margin-bottom: 30px; } h2 { color: #555; border-bottom: 1px solid #ddd; padding-bottom: 5px; margin-bottom: 20px; } /* Form styles */ .form-container, .contact-form, .confirmation-container { max-width: 600px; margin: 0 auto; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } .form-group, .setting { margin-bottom: 15px; } label { display: block; margin-bottom: 5px; font-weight: bold; } input, textarea, select { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; } textarea { height: 100px; resize: vertical; } button, .btn { background-color: #007bff; color: white; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; text-decoration: none; display: inline-block; } button:hover, .btn:hover { background-color: #0056b3; } .btn-secondary { background-color: #6c757d; } .btn-secondary:hover { background-color: #545b62; } .btn-danger { background-color: #dc3545; } .btn-danger:hover { background-color: #dc3545; color: white; } .btn-primary { background-color: #007bff; color: white; } .btn-primary:hover { background-color: #0056b3; } .btn-success { background-color: #28a745; color: white; } .btn-success:hover { background-color: #1e7e34; } /* Message styles */ .message { padding: 10px; margin: 10px 0; border-radius: 4px; } .message.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; } .message.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; } .message.info { background-color: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; } /* Admin dashboard */ .dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 40px; } .dashboard-card { border: 1px solid #ddd; border-radius: 8px; padding: 20px; background-color: #f9f9f9; transition: box-shadow 0.3s ease; } .dashboard-card:hover { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); } .dashboard-card h2 { color: #555; margin-top: 0; margin-bottom: 15px; } .dashboard-card p { color: #666; margin-bottom: 15px; } .stats { display: flex; justify-content: space-around; margin-bottom: 30px; flex-wrap: wrap; } .stat-card { background-color: #e9ecef; padding: 15px; border-radius: 8px; text-align: center; min-width: 150px; margin: 5px; } .stat-card h3 { margin: 0; color: #495057; font-size: 2em; } .stat-card h4 { margin: 0 0 10px 0; color: #666; font-size: 14px; } .stat-card .number { font-size: 24px; font-weight: bold; color: #333; } .stat-card p { margin: 5px 0 0 0; color: #6c757d; font-size: 0.9em; } .logout { text-align: center; margin-top: 40px; } .logout a { color: #dc3545; text-decoration: none; } .logout a:hover { text-decoration: underline; } /* Admin settings */ .setting-group { margin-bottom: 20px; } .setting strong { display: inline-block; width: 200px; } .settings-management { margin-top: 40px; padding: 20px; border: 1px solid #ddd; border-radius: 5px; } .settings-list { margin-bottom: 20px; } .setting-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; border-bottom: 1px solid #eee; } .setting-item:last-child { border-bottom: none; } .setting-info { flex-grow: 1; } .setting-actions { display: flex; gap: 10px; } .form-row { display: flex; gap: 10px; align-items: end; } .form-row .form-group { flex: 1; margin-bottom: 0; } .edit-form { display: none; margin-top: 10px; padding: 10px; background: #f8f9fa; border-radius: 3px; } /* Newsletter manage */ .form-section { margin: 20px 0; padding: 20px; border: 1px solid #ddd; border-radius: 8px; } /* Table styles */ table { width: 100%; border-collapse: collapse; margin-bottom: 20px; } th, td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; } th { background-color: #f8f9fa; font-weight: bold; } tr:hover { background-color: #f5f5f5; } /* Pagination */ .pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 20px; } .pagination a, .pagination span { padding: 8px 12px; text-decoration: none; border: 1px solid #ddd; border-radius: 4px; color: #007bff; } .pagination a:hover { background-color: #007bff; color: white; } .pagination .current { background-color: #007bff; color: white; } /* Pagination */ .pagination button { padding: 8px 12px; border: 1px solid #ddd; background-color: white; cursor: pointer; border-radius: 4px; } .pagination button:hover { background-color: #f8f9fa; } .pagination button:disabled { background-color: #e9ecef; cursor: not-allowed; } .pagination .current-page { font-weight: bold; color: #007bff; } /* Utility classes */ .text-center { text-align: center; } .mt-20 { margin-top: 20px; } .mb-20 { margin-bottom: 20px; }